7 Sep
1999
7 Sep
'99
9:39 a.m.
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