[Erp5-report] r7668 - /erp5/trunk/products/ERP5/Tool/AlarmTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 9 17:42:46 CEST 2006


Author: aurel
Date: Fri Jun  9 17:42:43 2006
New Revision: 7668

URL: http://svn.erp5.org?rev=7668&view=rev
Log:
parameter list order of process_timer was wrong
and TimerService give DateTime object not floating time number

Modified:
    erp5/trunk/products/ERP5/Tool/AlarmTool.py

Modified: erp5/trunk/products/ERP5/Tool/AlarmTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/AlarmTool.py?rev=7668&r1=7667&r2=7668&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/AlarmTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/AlarmTool.py Fri Jun  9 17:42:43 2006
@@ -194,13 +194,13 @@
     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()
+




More information about the Erp5-report mailing list