15 Feb
2004
15 Feb
'04
8:12 p.m.
return printed does only work for PythonScripts and *not* for ExternalMethod. -aj --On Sonntag, 15. Februar 2004 14:58 Uhr -0500 bobby and alex <bobbyandalex@hotmail.com> wrote:
I feel like i'm hitting my head up against a wall, and need a sanity check. on an external method,
def main(self): print "this is a test" return printed
doesn't work. what is printed does display on my console, but my zmi comes back with
Error Type: NameError Error Value: global name 'printed' is not defined
I'm using default python 2.1 installation (jnot from zope) and zope 2.6.0... on w2k.
return printed does work as expected from inside a script/python, however. Thanks a lot for any response, like i said it's about time to put a helmet on.