def __init__(self, parent, name, success_state, failure_state): RequestQueueState.__init__(self, parent, name) self.insert_uri = None self.queued = False self.msg = None self.success_state = success_state self.failure_state = failure_state
def __init__(self, parent, name): RequestQueueState.__init__(self, parent, name) # edge -> StatefulRequest self.pending = {} self.new_edges = [] self.required_edges = [] # HACK: # edge -> (x,y, 0) Freenet metadata bytes self.salting_cache = {}
def reset(self): """ Implementation of State virtual. """ self.new_edges = [] self.required_edges = [] self.salting_cache = {} RequestQueueState.reset(self)
def reset(self): """ Implementation of State virtual. """ self.insert_uri = None self.queued = False self.msg = None RequestQueueState.reset(self)