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
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
--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
___
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 f
--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
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
Tony Middleton wrote:
This gave error global name 'SMTPSenderRefused' is not defined
I tried importing smtplib and adding it to the except line and then
got a permissions problem.
You are not allowed to access SMTPSenderRefused in this context
I'd appreciate any help with this.
You may pu
Sorry if this is a silly question but I've not found anything via Google
or zope.org.
I am using a MailHost in a Python script. I need to trap error conditions.
When I run without trapping I can get exception SMTPSenderRefused.
I inserted trapping - eg
try:
context.mailman.send(vmessag
hey All
It appears that I have solved it...
My process in moving over the product from the old server was to blame.
Here's what I did: export all of the zodb contents, and tarball the
python product. Then I imported the zodb contents into the new server,
and un-tarred the product. This r
Hi Dieter,
I figured it out after googling around for a few hours. In my
manage_addContact method, I'm now getting the object after it's instantiated
like so:
#instantiate a contact object
self._setObject(id, newContact)
#get the new instance
obj = self._getOb(id)
#change pe
michael nt milne wrote at 2006-2-28 15:51 +:
>I'm probably missing something really obvious but am wondering how you
>actually implement your product on a live plone site. I've got it installed.
>Do you just customise the login form that comes with the product and use
>that on the site?
I fear
Jonathan Bowlas wrote at 2006-2-28 13:20 -:
> ...
>I've also checked Control_Panel/DebugInfo for any refcounts with significant
>jumps and Products.Silva.Image.Image seems to be the culprit:
> 11.32am 11.36am
>Products.Silva.Image.Image 56203
Palermo, Tom wrote at 2006-2-28 11:25 -0500:
>I have a class called Contact that is now inheriting from Folder. After I
>did this, I get the following error when attempting to add a new Contact:
>
>Exception Type AttributeError
>Exception Value aq_acquire
Only acquisition wrappers have the "aq
[Please excuse this job offer in german language]
Gallileus GmbH (Erfurt) sucht Entwickler
Wir suchen ab März 2006 einen ZOPE-/Python-Entwickler, sowie einen
Webentwickler, beide zur Festanstellung in Erfurt.
Zusätzlich suchen wir für die selben Bereiche Praktikanten und
studentische Hilfskräf
All,
I have a class called Contact
that is now inheriting from Folder. After I did this, I get the following error
when attempting to add a new Contact:
Exception Type
AttributeErrorException Value aq_acquire
Traceback (innermost
last):
* Module
ZPublisher.Publish, line 101,
On Tuesday 28 February 2006 07:10, Dennis Allison wrote:
> OK, I'll do that. My post was to learn whether I was walking into a mine
> field...
In my experience, unless you are using Zope 3 technologies in Zope 2 (via
Five) there is very little difference from a Product development point of
view
OK, I'll do that. My post was to learn whether I was walking into a mine
field...
On Tue, 28 Feb 2006, Chris Withers wrote:
> Dennis Allison wrote:
> > Yup, it does seem a bit strange, but I'd rather not maintain multiple
> > versions of Zope if I can avoid it. And I have a user that wants t
Hi All,
A few weeks ago I posted this message to the list but we still haven't
resolved our memory leak, mainly because we have no idea where to look.
So having trawled around a few forums I decided to install the LeakFinder
product onto our development server and click around a little watching t
Dennis Allison wrote:
Yup, it does seem a bit strange, but I'd rather not maintain multiple
versions of Zope if I can avoid it. And I have a user that wants to
experiment with and/or use Squishdot.
Try it and see. I personally haven't, but I'd be interested in fixing
any problems that do ari
Ed Colmar wrote:
Now I see get a name error when trying to access it.
*Error Type: NameError*
*Error Value: name 'send_password_reminder' is not defined
If you gave us the whole traceback we might have a clue how to help you...
Chris
--
Simplistix - Content Management, Zope & Python Consult
Yup, it does seem a bit strange, but I'd rather not maintain multiple
versions of Zope if I can avoid it. And I have a user that wants to
experiment with and/or use Squishdot.
On Tue, 28 Feb 2006, Jens Vagelpohl wrote:
>
> On 28 Feb 2006, at 07:26, Dennis Allison wrote:
>
> >
> > Are ther
On 28 Feb 2006, at 07:26, Dennis Allison wrote:
Are there any known compatibilty problems? -d
I guess a more appropriate question would be "Has anyone ever done
this?", with a likely answer of "no" ;)
Chris might have tried it.
jens
___
Zo
22 matches
Mail list logo