[Zope-CVS] CVS: Products/Scheduler - Scheduler.py:1.7

Tres Seaver tseaver@zope.com
Wed, 25 Sep 2002 08:48:01 -0400


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

Modified Files:
	Scheduler.py 
Log Message:


  - Add a knob to permit notifying the schedule manually (e.g., for testing
    feeds without needing to run the clock).


=== Products/Scheduler/Scheduler.py 1.6 => 1.7 ===
--- Products/Scheduler/Scheduler.py:1.6	Mon Aug 26 19:58:43 2002
+++ Products/Scheduler/Scheduler.py	Wed Sep 25 08:48:00 2002
@@ -263,6 +263,15 @@
         if REQUEST is not None:
             return self.manage_current_tasks(self, REQUEST)
 
+    security.declareProtected(NOTIFY_SCHEDULE_PERM, 'manage_notifyTasks')
+    def manage_notifyTasks(self, REQUEST=None):
+
+        """ Run any pending tasks (allow poking via the ZMI)."""
+        self.notify()
+
+        if REQUEST is not None:
+            return self.manage_current_tasks(self, REQUEST)
+
     security.declareProtected(CHANGE_SCHEDULE_PERM, 'manage_descheduleTask')
     def manage_descheduleTask(self, when, REQUEST=None):
         """ """