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