[Zope] External Methods newbie question

Andreas Jung lists at andreas-jung.com
Tue Feb 28 20:20:42 EST 2006



--On 28. Februar 2006 17:14:50 -0800 Alric Aneron <aluminum3458 at yahoo.com> 
wrote:

> 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?
>

This is basically a Pyhthon question. Look at os.system(), the subprocess
module, popenX calls....the Python Library Reference is your friend.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060228/21dfd537/attachment.bin


More information about the Zope mailing list