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

Bobb rawbobb at hotmail.com
Sun Feb 15 15:16:26 EST 2004


ugghh!!!
lol

Thank you!!!

----- Original Message -----
From: "Andreas Jung" <andreas at andreas-jung.com>
To: "bobby and alex" <bobbyandalex at hotmail.com>; <zope at 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 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.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope at 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 )
>



More information about the Zope mailing list