def set_controller(self, controller=None): ExtBackend.set_controller(self, controller) if controller: #controller.proc_cmd(self, command.ping("Are you there?")) controller.proc_cmd(self, command.no_output()) controller.proc_cmd(self, self.cmd) self.wait = True
def set_controller(self, controller=None): ExtBackend.set_controller(self, controller) if controller: #controller.proc_cmd(self, command.ping("Are you there?")) controller.proc_cmd(self, command.no_output()) controller.proc_cmd(self, self.cmd) self.wait = True
def set_controller(self, controller=None): ExtBackend.set_controller(self, controller) if controller: self.__status = self._CONNECTED # FIXME: implement proper output filterring instead of no_output: controller.proc_cmd(self, command.no_output()) for cid in self.__queue: cmd, d = self.__pending[cid] controller.proc_cmd(self, cmd) reactor.callLater(self.TIMEOUT, self.timeout, cid) else: self.__status = self._IDLE
def set_controller(self, controller=None): ExtBackend.set_controller(self, controller) if controller: self.__status = self._CONNECTED # FIXME: implement proper output filterring instead of no_output: controller.proc_cmd(self, command.no_output()) for cid in self.__queue: cmd, d = self.__pending[cid] controller.proc_cmd(self, cmd) reactor.callLater(self.TIMEOUT, self.timeout, cid) else: self.__status = self._IDLE
def set_controller(self, controller=None): '''Handle server going online/offline.''' ExtBackend.set_controller(self, controller) if controller: for task in self.tasks.values(): task.online()
def set_controller(self, controller=None): ExtBackend.set_controller(self, controller) if controller: self.do_beah_cmd()
def set_controller(self, controller=None): '''Handle server going online/offline.''' ExtBackend.set_controller(self, controller) if controller: for task in self.tasks.values(): task.online()