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

Andreas Jung andreas at andreas-jung.com
Sun Feb 15 15:12:17 EST 2004


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 at 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.
>
>
>
>
>
>
>
>
>
>







More information about the Zope mailing list