Commit 13b5f41c authored by Aurel's avatar Aurel

parameter list order of process_timer was wrong

and TimerService give DateTime object not floating time number

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40679cd9
......@@ -194,13 +194,13 @@ class AlarmTool(BaseTool):
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.last_tic = tick
self.last_tic = tick.timeTime()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment