[Zope-dev] Re: [Zope] Announce: PythonMethod 0.0.1

Robin Becker robin@jessikat.demon.co.uk
Tue, 7 Sep 1999 10:39:47 +0100


In article <37D4B328.DCAFB498@4-am.com>, Evan Simpson <evan@4-am.com>
writes
>It works.  I'm really tired.  For more, see
>http://zope.org:18200/Members/4am/PythonMethod
>
OK I've installed this and have got a minor nit.

If I define this as an external method in /test
def hello_world(name='nobody'):
    return "Hello, " + name + "!"

then /test/hello_world/name=Robin gives back

Hello, Robin!

however if I define as a python method I get back
Hello, nobody!


for the python method my argument list looks like
name='nobody'

and the body looks like
return "Hello, " + name + "!"

the python method works as expected from DTML.
-- 
Robin Becker