Example #1
0
 def failure_ticket_id(self):
     sender = self.context.sender
     if (IRemoteTask.providedBy(sender) and sender.failed):
         return sender.__name__
     return None
Example #2
0
 def should_reload(self):
     sender = self.context.sender
     if IRemoteTask.providedBy(sender):
         return not sender.finished
     return False
Example #3
0
 def failed_task(self):
     sender = self.context.sender
     if not (IRemoteTask.providedBy(sender) and sender.failed):
         return None
     return sender
Example #4
0
 def task(self):
     sender = self.context.sender
     if IRemoteTask.providedBy(sender):
         return sender
     return None
Example #5
0
 def failure_ticket_id(self):
     sender = self.context.sender
     if (IRemoteTask.providedBy(sender) and
         sender.failed):
         return sender.__name__
     return None
Example #6
0
 def failed_task(self):
     sender = self.context.sender
     if not (IRemoteTask.providedBy(sender) and
             sender.failed):
         return None
     return sender
Example #7
0
 def should_reload(self):
     sender = self.context.sender
     if IRemoteTask.providedBy(sender):
         return not sender.finished
     return False
Example #8
0
 def task(self):
     sender = self.context.sender
     if IRemoteTask.providedBy(sender):
         return sender
     return None