class BunchFactory(Factory): protocol = BunchProtocol def __init__(self, verbose=False): self.id = 0 self.verbose = False self.mqm = MessageQueueManager() def report(self, msg): if self.verbose: print "[%s] BunchFactory: %s" % (datetime.now(), msg) def disconnected(self, proto): self.mqm.unsubscribe_all_queues(proto)
def __init__(self, verbose=False): self.id = 0 self.verbose = False self.mqm = MessageQueueManager()