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

Ken Manheimer klm@zope.com
Thu, 15 Aug 2002 12:48:34 -0400


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

Modified Files:
	IScheduler.py 
Log Message:
Refined IScheduledEvent to use accessor methods instead of attributes:

 'description' => 'getDescription()'
 'when' => 'getTime()'


=== Products/Scheduler/IScheduler.py 1.3 => 1.4 ===
--- Products/Scheduler/IScheduler.py:1.3	Wed Aug 14 15:33:10 2002
+++ Products/Scheduler/IScheduler.py	Thu Aug 15 12:48:33 2002
@@ -86,21 +86,23 @@
         Return the time that this event wants to be scheduled for
         """
 
-    def info():
+    def getInfo():
         """
-        Return a string describing the tasks event-specific processing details.
+        Return string describing the task's event-specific processing details.
         """
 
-    description = Attribute(
-        """Short description of the event
+    def getDescription():
+        """
+        Return short description of the event.
         
         This should include what the event does and, if the event is
         recuring, how the event recurs.
-        """)
+        """
 
-    when = Attribute(
-        """Time the event is scheduled for.
-        """)
+    def getTime():
+        """
+        Return the time scheduled for the event.
+        """
 
 class IDescheduledEvent(IFilterableEvent):
     def getTime():