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 ): 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

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

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 ju

[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 name

Re: [Zope] Trapping exceptions

2006-02-28 Thread Maciej Wisniowski
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

[Zope] Trapping exceptions

2006-02-28 Thread Tony Middleton
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

Re: [Zope] product security changes from 2.8 to 2.8.5 - SOLVED

2006-02-28 Thread Ed Colmar
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

RE: [Zope] ac_acquire error happens after inheriting from Folder

2006-02-28 Thread Palermo, Tom
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

Re: [Zope] Zope/Plone logon security strategy etc

2006-02-28 Thread Dieter Maurer
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

RE: [Zope] Memory Leak Debugging

2006-02-28 Thread Dieter Maurer
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  

Re: [Zope] ac_acquire error happens after inheriting from Folder

2006-02-28 Thread Dieter Maurer
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

[Zope] ZOPE/Python Stellenangebote

2006-02-28 Thread Sascha Ottolski
[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

[Zope] ac_acquire error happens after inheriting from Folder

2006-02-28 Thread Palermo, Tom
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,

Re: [Zope] Squishdot on Zope 2.9.X with Python 2.4

2006-02-28 Thread Alec Mitchell
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

Re: [Zope] Squishdot on Zope 2.9.X with Python 2.4

2006-02-28 Thread Dennis Allison
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

RE: [Zope] Memory Leak Debugging

2006-02-28 Thread Jonathan Bowlas
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

Re: [Zope] Squishdot on Zope 2.9.X with Python 2.4.2

2006-02-28 Thread Chris Withers
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

Re: [Zope] product security changes from 2.8 to 2.8.5 ?

2006-02-28 Thread Chris Withers
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

Re: [Zope] Squishdot on Zope 2.9.X with Python 2.4.2

2006-02-28 Thread Dennis Allison
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

Re: [Zope] Squishdot on Zope 2.9.X with Python 2.4.2

2006-02-28 Thread Jens Vagelpohl
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