Re: [Zope] external method: importing and updating method

2006-10-05 Thread Chris Withers
Alan wrote: Thanks for help. I did what suggested below. We also set a crontab to restart the zope server every night, Why?! Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: Re: [Zope] external method: importing and updating method

2006-10-05 Thread Alan
Hi List, crontab is really a bad idea. We quitted that. Thanks for your commentaries. Alan On 05/10/06, Chris Withers [EMAIL PROTECTED] wrote: Alan wrote: Thanks for help. I did what suggested below. We also set a crontab to restart the zope server every night, Why?! Chris -- Simplistix

Re: Re: [Zope] external method: importing and updating method

2006-10-05 Thread Andreas Jung
--On 5. Oktober 2006 10:24:31 +0100 Alan [EMAIL PROTECTED] wrote: Hi List, crontab is really a bad idea. We quitted that. Why is using crontab a bad idea? It's the most common and most reliable solution to run scripts in Zope periodically. -aj pgpHnQfkHcCKi.pgp Description: PGP

Re: [Zope] external method: importing and updating method

2006-10-05 Thread Pascal Peregrina
List zope@zope.org Objet : Re: [Zope] external method: importing and updating method -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5 Oct 2006, at 05:24, Alan wrote: Hi List, crontab is really a bad idea. We quitted that. Might make sense to back up blanket nonsensical

Re: Re: [Zope] external method: importing and updating method

2006-10-04 Thread Alan
] To: Alan [EMAIL PROTECTED] Cc: zope@zope.org Sent: Tuesday, October 03, 2006 2:06 PM Subject: Re: [Zope] external method: importing and updating method Alan wrote at 2006-10-2 18:48 +0100: In my external method I have something like this: ... sys.path.insert(0, CCPNPYTHON) This is not a good

Re: Re: [Zope] external method: importing and updating method

2006-10-04 Thread Jonathan
- Original Message - From: Alan [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: Dieter Maurer [EMAIL PROTECTED]; zope@zope.org Sent: Wednesday, October 04, 2006 6:12 AM Subject: Re: Re: [Zope] external method: importing and updating method Hi Folks, Thanks for help. I did what

Re: Re: [Zope] external method: importing and updating method

2006-10-04 Thread Lennart Regebro
On 10/4/06, Alan [EMAIL PROTECTED] wrote: Thanks for help. I did what suggested below. We also set a crontab to restart the zope server every night, but them I was wondering if it is a good idea. Isn't it better to just restart the server when you have updated the software? Modules loaded from

Re: [Zope] external method: importing and updating method

2006-10-03 Thread Dieter Maurer
Alan wrote at 2006-10-2 18:48 +0100: In my external method I have something like this: ... sys.path.insert(0, CCPNPYTHON) This is not a good idea! The source of an External Method can be read arbitrarily often -- and each time, you extend sys.path... The imp module allows you to import modules

Re: [Zope] external method: importing and updating method

2006-10-03 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Alan [EMAIL PROTECTED] Cc: zope@zope.org Sent: Tuesday, October 03, 2006 2:06 PM Subject: Re: [Zope] external method: importing and updating method Alan wrote at 2006-10-2 18:48 +0100: In my external method I have

Re: [Zope] external method: importing and updating method

2006-10-02 Thread Jonathan
- Original Message - From: Alan [EMAIL PROTECTED] To: zope@zope.org Sent: Monday, October 02, 2006 1:48 PM Subject: [Zope] external method: importing and updating method Hi List! In my external method I have something like this: ... sys.path.insert(0, CCPNPYTHON) from