<!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.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I don't understand your question regarding 'execute 
the whole file'?&nbsp; Why can't you just put all of the python commands you 
want into an external method, then use a single 'main-line function' to call the 
'sub-functions' as needed?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>python has a command called 'commands' which can be 
used for executing bash commands.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>hth</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=aluminum3458@yahoo.com href="mailto:aluminum3458@yahoo.com">Alric 
  Aneron</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org 
  href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 28, 2006 8:14 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] External Methods newbie 
  question</DIV>
  <DIV><BR></DIV>Hello,<BR>I see I can only execute python functions in external 
  methods. <BR>Is there any way to execute the whole file, not just a certain 
  function?&nbsp; In linux I created a python script, and it doesn't have 
  functions.&nbsp; I just want to execute the whole file.&nbsp; I tried using 
  "self" or "init" for function names in Zope and it doesn't want to do it, 
  telling me "The specified object, <EM>init</EM>, was not found in module, 
  <EM>test</EM>."<BR><BR>Is there a way to execute a file?<BR><BR>(another 
  question: is there a way to execute bash commands in linux? or is external 
  methods only good for python?)<BR><BR>Thanks in advance guys!!<BR>
  <P>
  <HR SIZE=1>
  Yahoo! Mail<BR><A 
  href="http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com">Use 
  Photomail</A> to share photos without annoying attachments.
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Zope maillist&nbsp; 
  -&nbsp; 
  Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; 
  No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - 
  <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev 
  )<BR></BLOCKQUOTE></BODY></HTML>