Beispiel #1
0
 def processObject(self, obj):
     """Operate on the provided task object."""
     # ask the user if we should continue
     if not obj.pre(self, "Resume this task?"):
         return
     # try to run the operation
     query.resume(obj)
     obj.post(self, "resumed")
Beispiel #2
0
 def processObject(self, obj):
     """Operate on the provided task object."""
     # ask the user if we should continue
     if not obj.pre(self, "Resume this task?"):
         return
     # try to run the operation
     query.resume(obj)
     obj.post(self, "resumed")
Beispiel #3
0
def test_task_ops(task):
    print "retry"
    tq.retry(task)
    print "resume"
    tq.resume(task)
    print "skip"
    tq.skip(task)
    print "log"
    log = tq.log(task)
    print log