23 Jun
2002
23 Jun
'02
10:22 a.m.
kent@springfed.com wrote:
Howdy,
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. e.g., def hello(): """Say hello, world!""" return "Howdy there big world" -- Jim Washington