예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
    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 = {}
예제 #4
0
    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 = {}
예제 #5
0
 def reset(self):
     """ Implementation of State virtual. """
     self.new_edges = []
     self.required_edges = []
     self.salting_cache = {}
     RequestQueueState.reset(self)
예제 #6
0
 def reset(self):
     """ Implementation of State virtual. """
     self.new_edges = []
     self.required_edges = []
     self.salting_cache = {}
     RequestQueueState.reset(self)
예제 #7
0
 def reset(self):
     """ Implementation of State virtual. """
     self.insert_uri = None
     self.queued = False
     self.msg = None
     RequestQueueState.reset(self)
예제 #8
0
 def reset(self):
     """ Implementation of State virtual. """
     self.insert_uri = None
     self.queued = False
     self.msg = None
     RequestQueueState.reset(self)