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 name
--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
ju
and called 'commands' which can be
used 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 on
--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
___
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
To executed a "whole file" you need to wrap it as a function --
def foo( self ):
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 the modu
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"