[Erp5-dev] Scheduling a a script and some more queries

Danny Admin dannywork1 at hotmail.com
Tue Dec 30 19:53:34 CET 2008


Thanks for your valuable time and effort.

Regards
Danny

> From: vincent at nexedi.com
> To: erp5-dev at erp5.org
> Date: Mon, 29 Dec 2008 10:27:50 +0100
> Subject: Re: [Erp5-dev] Scheduling a a script and some more queries
> 
> Hi.
> 
> Le Saturday 27 December 2008 19:31:02 Danny Admin, vous avez écrit :
> > Thanks for your valuable answer.
> 
> Just one more thing about portal_alarms: it has a minute-level granularity 
> IIRC, so it won't fit a 5 second periodicity.
> 
> > 1. Can i use portal_activities for this? If yes then how i start an
> > activity that will run at a particular time each day?
> 
> Basically, portal_activities is designed for one-shot execution. Of course, 
> you can make an activity create another one, making it periodic.
> You can plan an alarm for execution at a future date by providing an "at_date" 
> parameter to "activate" method. Ex:
>   context.activate(at_date=DateTime("2009-01-01 00:00:00")).doSomething()
> Note that it will only give a lower bound to its possible execution, it might 
> execute later. That imprecision depends on activity load (how many pending 
> activities, ...) and timerserver tic rate (set in your zope.conf, by default 
> it's one tic every 5 seconds).
> 
> For your other questions, I'm afraid don't know these areas well enough to 
> give an answer.
> 
> -- 
> Vincent Pelletier
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20081230/517bf6d2/attachment.htm>


More information about the Erp5-dev mailing list