def start(self): Exporter.start(self) if not self.running: self.running = 1 self.connection = as_node(self.connection_node) self._time_keeper = PersistentDataObject(self) self._time_keeper.start_time = 0 self._time_keeper.load() self._period = self.parent.parent.period self._setup_trigger() else: raise EAlreadyRunning
def start(self): Exporter.start(self) if not self.running: self.running = 1 self.connection = as_node(self.connection_node) self._event_count = self.log_multiple - 1 self._time_keeper = PersistentDataObject(self) self._time_keeper.start_time = 0 self._time_keeper.load() self._period = self.parent.parent.period self.parent.parent.event_subscribe(self, LogAddEntryEvent) else: raise EAlreadyRunning
def start(self): Exporter.start(self) if not self.running: node = as_node(self.connection_node) if hasattr(node, "event_subscribe"): node.event_subscribe(self, ConnectionEvent) else: if self.debug: msg = "Connection node: " + str(self.connection_node) + " is not an event producer." msglog.log("broadway", msglog.types.INFO, msg) self.connection = node self.running = 1 self._init_next_time() self._schedule() else: raise EAlreadyRunning
def start(self): Exporter.start(self) if not self.running: node = as_node(self.connection_node) if hasattr(node, 'event_subscribe'): node.event_subscribe(self, ConnectionEvent) else: if self.debug: msg = ('Connection node: ' + str(self.connection_node) + ' is not an event producer.') msglog.log('broadway', msglog.types.INFO, msg) self.connection = node self.running = 1 self._init_next_time() self._schedule() else: raise EAlreadyRunning
def start(self): self.running = 1 Exporter.start(self) return