[Zope-CVS] CVS: Products/Scheduler - Scheduler.py:1.2
Ken Manheimer
klm@zope.com
Thu, 8 Aug 2002 17:20:20 -0400
Update of /cvs-repository/Products/Scheduler
In directory cvs.zope.org:/tmp/cvs-serv8168
Modified Files:
Scheduler.py
Log Message:
manage_addScheduler(): obtain an event service in the process of
adding, so that we fail if the event_service isn't already there.
Otherwise, if the event service is created after us, we won't be
properly registered with it.
__init__(): Give initial settings for steps and interval so the
properties management screen, which has properties for those values,
works. (I might should be setting them as class instance vars,
instead of via __init__, but i'm assuming not many people already
have instances...)
=== Products/Scheduler/Scheduler.py 1.1.1.1 => 1.2 ===
--- Products/Scheduler/Scheduler.py:1.1.1.1 Mon Jun 10 13:03:03 2002
+++ Products/Scheduler/Scheduler.py Thu Aug 8 17:20:20 2002
@@ -76,6 +76,8 @@
else:
self.filter_data = ''
self.event_service = event_service
+ self.steps = []
+ self.interval = 0
def subscribedTo(self, subscribable, event_type, filter):
"""
@@ -414,6 +416,7 @@
def manage_addScheduler(self, id, title, filter_data, REQUEST=None):
""" """
ob = Scheduler(id, title, filter_data)
+ event_service = getattr(self, ob.event_service)
self._setObject(id, ob)
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1)