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

kent@springfed.com kent@springfed.com
Sun, 23 Jun 2002 06:32:07 -0500

Thanks Jim, that was it.

I added a comment to the Zope Book.


On Sun, 23 Jun 2002 06:22:56 -0400, Jim Washington wrote:
kent@springfed.com wrote:

>I wrote the example as in The Zope Book;
>file hello.py in Extensions dir
>def hello():
>=A0=A0=A0=A0return "Howdy there big world"
>I created a folder testExternalMethods
>and added External Method =3D 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=
Methods published to the web from external methods (or inside=
products) need a docstring.


def hello():
"""Say hello, world!"""
=A0=A0=A0=A0return "Howdy there big world"

-- Jim Washington

Zope maillist =A0- =A0Zope@zope.org
** =A0 No cross posts or HTML encoding! =A0**
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-dev )