[Zope] External Methods newbie question

Jonathan dev101 at magma.ca
Tue Feb 28 20:26:13 EST 2006


I don't understand your question regarding 'execute the whole file'?  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?

python has a command called 'commands' which can be used for executing bash commands.

hth

Jonathan
  ----- Original Message ----- 
  From: Alric Aneron 
  To: zope at zope.org 
  Sent: Tuesday, February 28, 2006 8:14 PM
  Subject: [Zope] External Methods newbie question


  Hello,
  I see I can only execute python functions in external methods. 
  Is there any way to execute the whole file, not just a certain function?  In linux I created a python script, and it doesn't have functions.  I just want to execute the whole file.  I tried using "self" or "init" for function names in Zope and it doesn't want to do it, telling me "The specified object, init, was not found in module, test."

  Is there a way to execute a file?

  (another question: is there a way to execute bash commands in linux? or is external methods only good for python?)

  Thanks in advance guys!!



------------------------------------------------------------------------------
  Yahoo! Mail
  Use Photomail to share photos without annoying attachments.


------------------------------------------------------------------------------


  _______________________________________________
  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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060228/f0f5edd7/attachment.htm


More information about the Zope mailing list