[Zope] Moving an application from Zope 2.8 to Zope 2.11

2009-02-16 Thread Marco Bizzarri
Hi all. Following the advices I received about upgrading the current release of Zope, I'm moving an application from Zope 2.8 to Zope 2.11. I've already solve some minor issues with other Products I have, but now I would like to know how to handle this: I'm using Localizer inside the application,

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
On Mon, Feb 16, 2009 at 6:50 PM, Thierry Florac wrote: > > Hi, > > I don't know if it's the best way, but I've implemented a "cron like" > task base class for my Zope-2.9 instance, which : > - is thread based > - can launch operations in a "cron like" way > - can act as the user of your choice.

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Thibaud Morel l'Horset
I'm guessing that AJ's solution is the best to implement. What I did to solve this problem is simply create a few crons on the server that each do a mechanize (http://wwwsearch.sourceforge.net/mechanize/) http call to a specific location in Zope which basically acts as a private API: when called,

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Thierry Florac
Le lundi 16 février 2009 à 16:59 +0100, Marco Bizzarri a écrit : > Hi all. > > A little of background, before. > > I need to run some tasks, inside a zope environment, in a periodic > way. Even though I could resort to using cron and wget, I do not like > the solution too much, also because it re

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.02.2009 17:11 Uhr, Marco Bizzarri wrote: > On Mon, Feb 16, 2009 at 5:01 PM, Andreas Jung wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> > >> ClockServer (build-in of Zope). Check your zope.conf. >> >> - -aj > > > Thanks for ans

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
On Mon, Feb 16, 2009 at 5:01 PM, Andreas Jung wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > ClockServer (build-in of Zope). Check your zope.conf. > > - -aj Thanks for answering, Andreas. Is it reasonably safe to use Clock Server in Zope 2.8? (( Reasonably safe = there are no ob

Re: [Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.02.2009 16:59 Uhr, Marco Bizzarri wrote: > Is there a better way to run such tasks in Zope 2 environments? > ClockServer (build-in of Zope). Check your zope.conf. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Usi

[Zope] Periodic task in a Zope 2 environment

2009-02-16 Thread Marco Bizzarri
Hi all. A little of background, before. I need to run some tasks, inside a zope environment, in a periodic way. Even though I could resort to using cron and wget, I do not like the solution too much, also because it requires me to rely on something completly external to the application to schedul