def failure_ticket_id(self): sender = self.context.sender if (IRemoteTask.providedBy(sender) and sender.failed): return sender.__name__ return None
def should_reload(self): sender = self.context.sender if IRemoteTask.providedBy(sender): return not sender.finished return False
def failed_task(self): sender = self.context.sender if not (IRemoteTask.providedBy(sender) and sender.failed): return None return sender
def task(self): sender = self.context.sender if IRemoteTask.providedBy(sender): return sender return None