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 alot for any response, like i said it's about time to put a helmet on.
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.
ugghh!!! lol Thank you!!! ----- Original Message ----- From: "Andreas Jung" <andreas@andreas-jung.com> To: "bobby and alex" <bobbyandalex@hotmail.com>; <zope@zope.org> Sent: Sunday, February 15, 2004 3:12 PM Subject: Re: [Zope] Bonehead problem w/ return printed from external method
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.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Andreas Jung -
Bobb -
bobby and alex