def doInit(self, *args, **kwargs): """ Action method. """ global _PacketLogFileEnabled _PacketLogFileEnabled = config.conf().getBool('logs/packet-enabled') callback.add_queue_item_status_callback(self._on_queue_item_status_changed)
def init(): """ Needs to be called before other methods here. """ lg.out(4, 'contact_status.init') callback.insert_inbox_callback(1, Inbox) # try to not overwrite top callback in the list, but stay on top callback.add_outbox_callback(Outbox) callback.add_queue_item_status_callback(OutboxStatus)
def init(): """ Needs to be called before other methods here. """ lg.out(4, 'contact_status.init') callback.insert_inbox_callback(-1, Inbox) callback.add_outbox_callback(Outbox) callback.add_queue_item_status_callback(OutboxStatus)
def init(): """ Needs to be called before other methods here. """ lg.out(4, 'contact_status.init') callback.insert_inbox_callback(-1, Inbox) callback.add_outbox_callback(Outbox) callback.add_queue_item_status_callback(OutboxStatus)
def init(): """ Init ``throttle()`` object and link with transports. This is the mechanism for sending and requesting files to drive backups. """ lg.out(4, "io_throttle.init") throttle() callback.add_queue_item_status_callback(OutboxStatus)
def init(): """ Needs to be called before other methods here. """ global _OfflineCheckTask lg.out(4, 'online_status.init') callback.insert_inbox_callback( 1, Inbox ) # try to not overwrite top callback in the list, but stay on top callback.add_queue_item_status_callback(OutboxStatus) _OfflineCheckTask = LoopingCall(RunOfflineChecks) _OfflineCheckTask.start(10, now=False)
def init(): """ Called from top level code when the software is starting. Needs to be called before other methods here. """ global _OfflineCheckTask global _ShutdownFlag lg.out(4, 'online_status.init') _ShutdownFlag = False callback.insert_inbox_callback(1, Inbox) # try to not overwrite top callback in the list, but stay on top callback.add_queue_item_status_callback(OutboxStatus) _OfflineCheckTask = LoopingCall(RunOfflineChecks) _OfflineCheckTask.start(10, now=False)