Re: [Zope] External Methods newbie question

2006-03-01 Thread Tino Wildenhain
Alric Aneron schrieb: 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

[Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
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

Re: [Zope] External Methods newbie question

2006-02-28 Thread Andreas Jung
--On 28. Februar 2006 17:14:50 -0800 Alric Aneron [EMAIL PROTECTED] 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

Re: [Zope] External Methods newbie question

2006-02-28 Thread Jonathan
for executing bash commands. hth Jonathan - Original Message - From: Alric Aneron To: zope@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

Re: [Zope] External Methods newbie question

2006-02-28 Thread Andreas Jung
--On 28. Februar 2006 20:26:13 -0500 Jonathan [EMAIL PROTECTED] wrote: python has a command called 'commands' which can be used for executing bash commands. talk about modules, not commands. -aj pgpBHzYiv1PtN.pgp Description: PGP signature ___

Re: [Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
thanks guys, I'll tryAndreas Jung [EMAIL PROTECTED] wrote: --On 28. Februar 2006 20:26:13 -0500 Jonathan <[EMAIL PROTECTED]> wrote: python has a command called 'commands' which can be used for executing bash commands.talk about modules, not commands.-aj Yahoo! Mail Bring photos to life! New

Re: [Zope] External Methods newbie question

2006-02-28 Thread Dennis Allison
To executed a whole file you need to wrap it as a function -- def foo( self ): the script and call foo as an external method. The self argument gives the context. Python provides several modules which give access to execute bash commands, linux commands, etc. Look at