Commit 13b5f41c by Aurel

parameter list order of process_timer was wrong

and TimerService give DateTime object not floating time number


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7668 20353a03-c40f-0410-a6d1-a30d3c3de9de
1 parent 40679cd9
......@@ -194,13 +194,13 @@ class AlarmTool(BaseTool):
self.subscribe()
BaseTool.inheritedAttribute('manage_afterAdd')(self, item, container)
def process_timer(self, tick, interval, prev="", next=""):
def process_timer(self, interval, tick, prev="", next=""):
"""
Call tic() every x seconds. x is defined in self.interval
This method is called by TimerService in the interval given
in zope.conf. The Default is every 5 seconds.
"""
if tick - self.last_tic >= self.interval:
if tick.timeTime() - self.last_tic >= self.interval:
self.tic()
self.last_tic = tick
self.last_tic = tick.timeTime()
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!