<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2737.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I feel like i'm hitting my head up against a wall, 
and need a sanity check.</FONT></DIV>
<DIV><FONT face=Arial size=2>on an external method,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>def main(self):<BR>&nbsp;&nbsp;&nbsp; print "this 
is a test"<BR>&nbsp;&nbsp;&nbsp; return printed<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;d</FONT><FONT face=Arial size=2>oesn't 
work.</FONT></DIV>
<DIV><FONT face=Arial size=2>what is printed does display on my console, but my 
zmi comes back with </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><STRONG>Error Type: NameError<BR>Error Value: global name 'printed' is not 
defined</STRONG></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV>I'm using default python 2.1 installation (jnot from zope) and zope 
2.6.0... on w2k.</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>return printed does work as expected&nbsp;from 
inside a script/python, however.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks alot&nbsp;for any response, like i said it's 
about time to put a helmet on.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>