Пример #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")
Пример #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")
Пример #3
0
Файл: test.py Проект: utsdab/usr
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