def proc_cmd_forward(self, cmd, echo_evt): evt = event.event(cmd.arg('event')) evev = evt.event() if evev not in ['variable_get', 'variable_set']: return echo_evt new_cmd = self.proc_evt(evt) if new_cmd: self.send_cmd(event.forward_response(new_cmd, cmd.id())) else: echo_evt = event.echo(cmd, ECHO.EXCEPTION, origin=self.origin(), exception='No forward_response.') return echo_evt
def proc_cmd(self, cmd): evt = event.forward_response(cmd, self.forward_id) self.backend.proc_evt(evt, explicit=True)