[Zope3-Users] Scheduler package usage

Thierry Florac thierry.florac at onf.fr
Tue Nov 21 09:36:03 EST 2006


Le mardi 21 novembre 2006 à 13:04 +0100, Thierry Florac a écrit :
> I'm trying to use the "scheduler" package available from Zope3's CVS to
> handle a set of regular and automatic tasks in my Zope-3.3 setup (using
> Twisted).

I finally mmanaged to make my CronTask strating ; problem was due to a
bug in "scheduler/cron.py" (in line 59, it returns "next" but should
return "next - now") ; I can't correct this because I don't have any CVS
access...

But now I have to face another problem : tasks are executed outside of
any request or context environment ; because of this, components lookups
always fail !
So I'd like to know :
 - how can I handle transactions ?
 - how can I "simulate" a real request, so that components lookups work
correctly ?
 - as I use virtual hosting, my utilities are located and registered in
a "sub-site". How can I get access to these components in my scheduler
tasks throught zapi functions, without knowing "a priori" their names or
paths ?

Thanks,

  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : thierry.florac at onf.fr
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85



More information about the Zope3-users mailing list