[Zope] First attempt at writing External Method .. need help

Jim Washington jwashin@vt.edu
Sun, 23 Jun 2002 06:22:56 -0400

kent@springfed.com wrote:

>I wrote the example as in The Zope Book;
>file hello.py in Extensions dir
>def hello():
>	return "Howdy there big world"
>I created a folder testExternalMethods
>and added External Method = hello ...
>It added with no errors, however clicking
>on the 'Test' tab of object 'hello' does nothing
>and the URL testExternalMethods/hello produces a blank page
>What am I missing here?
If your method is exactly as above, you are missing the docstring. 
 Methods published to the web from external methods (or inside Python 
products) need a docstring.


def hello():
"""Say hello, world!"""
	return "Howdy there big world"

-- Jim Washington