[Zope] Bonehead problem w/ return printed from external method

bobby and alex bobbyandalex at hotmail.com
Sun Feb 15 14:58:24 EST 2004


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.










-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040215/7f94dbc6/attachment.html


More information about the Zope mailing list