[Zope-CVS] CVS: Products/Scheduler/interfaces - IScheduler.py:1.3

Chris McDonough chrism@zope.com
Sat, 17 May 2003 14:46:38 -0400


Update of /cvs-repository/Products/Scheduler/interfaces
In directory cvs.zope.org:/tmp/cvs-serv11728/interfaces

Modified Files:
	IScheduler.py 
Log Message:
Changes which allow the descheduling of a task by its task id rather than by its time.  Now, when a task is scheduled, it is assigned a task id (available as the taskid attribute of the task).  The task must now be descheduled using its task id rather than its time.  A tag was made before this change named "before_taskid" in CVS in case changes to the HEAD cause breakages in dependent code.


=== Products/Scheduler/interfaces/IScheduler.py 1.2 => 1.3 ===
--- Products/Scheduler/interfaces/IScheduler.py:1.2	Sun Oct 20 21:50:40 2002
+++ Products/Scheduler/interfaces/IScheduler.py	Sat May 17 14:46:08 2003
@@ -101,12 +101,12 @@
         recuring, how the event recurs.
         """
 
-eventRegistry.registerEvent(IScheduledEvent, 'Schedule ticks')
+eventRegistry.registerEvent(IScheduledEvent, 'Schedule event')
 
 class IDescheduledEvent(IFilterableEvent):
-    def getTime():
+    def getTaskId():
         """
-        Return the time that this event wants to be descheduled from
+        Return the task id to deschedule.
         """
 
 class ITimeEvent(Interface.Base):