#839: [PATCH] add Task.cancel as a more pythonic way of cancelling the task
(scheduler)
------------------------------------+---------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  enhancement             |       Status:  closed   
 Priority:  normal                  |    Milestone:           
Component:  TurboGears              |      Version:  0.9a5    
 Severity:  normal                  |   Resolution:  wontfix  
 Keywords:                          |  
------------------------------------+---------------------------------------
Changes (by kevin):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I look at this a bit differently. A scheduler is like a collection of
 tasks. You add a task to it. You remove a task from it. The scheduler
 module happens to have a singleton scheduler, which makes this possible.
 It doesn't exist now, but the scheduler module *should* have an "add_task"
 or "schedule(task)" function in it, and cancel is the logical pair for
 that.

 Adding cancel to task really only makes sense because of the current
 implementation, but cancel really belongs to the scheduler, just as append
 and remove belong to list in Python.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/839>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to