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