From 13b5f41c11c2515554582f02762438a13cc2b380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Fri, 9 Jun 2006 15:42:43 +0000 Subject: [PATCH] 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 --- product/ERP5/Tool/AlarmTool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ERP5/Tool/AlarmTool.py b/product/ERP5/Tool/AlarmTool.py index 4fda2bda4f..db625ae054 100644 --- a/product/ERP5/Tool/AlarmTool.py +++ b/product/ERP5/Tool/AlarmTool.py @@ -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() -- 2.30.9