[Zope-CVS] CVS: Products/Scheduler/www - manage_current_tasks.zpt:1.2

Ken Manheimer klm@zope.com
Thu, 8 Aug 2002 17:23:39 -0400


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

Modified Files:
	manage_current_tasks.zpt 
Log Message:
Instead of hard-coding dependence on event-specific variables like
path (which some events won't even have), retries, and max_retries,
let an event use the new IScheduledEvent-mandated 'info' method to
advertise run-specific info.


=== Products/Scheduler/www/manage_current_tasks.zpt 1.1.1.1 => 1.2 ===
--- Products/Scheduler/www/manage_current_tasks.zpt:1.1.1.1	Mon Jun 10 13:03:03 2002
+++ Products/Scheduler/www/manage_current_tasks.zpt	Thu Aug  8 17:23:38 2002
@@ -17,9 +17,7 @@
   <th>Initial Schedule Time</th>
   <th>Next Run Time</th>
   <th>Description</th>
-  <th>Method Path</th>
-  <th>Retries</th>
-  <th>Max Retries</th>
+  <th>Run Specs</th>
 </tr>
 
 <tbody tal:repeat="task_tup tasks">
@@ -31,9 +29,9 @@
   <td tal:content="python: here.format_time(task_tup[1].when)">11:00 am</td>
   <td tal:content="python: here.format_time(task_tup[0])">11:00 am</td>
   <td tal:content="python: task_tup[1].description">An even task</td>
-  <td tal:content="python: task_tup[1].path">/the/method/path</td>
-  <td tal:content="python: task_tup[1].retries">0</td>
-  <td tal:content="python: task_tup[1].max_retries">0</td>
+  <td tal:content="python: task_tup[1].info()">
+    incidental run info
+  </td>
 </tr>
 
 <tr align="left" tal:condition="repeat/task_tup/odd" class="form-help">
@@ -42,9 +40,9 @@
   <td tal:content="python: here.format_time(task_tup[1].when)">11:00 am</td>
   <td tal:content="python: here.format_time(task_tup[0])">11:00 am</td>
   <td tal:content="python: task_tup[1].description">An odd task</td>
-  <td tal:content="python: task_tup[1].path">The method path</td>
-  <td tal:content="python: task_tup[1].retries">0</td>
-  <td tal:content="python: task_tup[1].max_retries">0</td>
+  <td tal:content="python: task_tup[1].info()">
+    incidental run info
+  </td>
 </tr>
 
 </tbody>