Exemplo n.º 1
0
 def handle_command(self, command):
     # Get param list corresponding to command
     params = self.get_param_list(command)
     result = json_rpc.get_answer(self.addr, 'call', params)
     print(result['answer'])
     if (result['refresh']):
         self.load_commands(result['root'])
Exemplo n.º 2
0
 def handle_command(self, command):
     # Get param list corresponding to command
     params = self.get_param_list(command)
     result = json_rpc.get_answer(self.addr, 'call', params)
     print(result['answer'])
     if (result['refresh']):
         self.load_commands(result['root'])
Exemplo n.º 3
0
 def connect(self, host, port):
     self.init = False
     self.addr = (host, port)
     result = json_rpc.get_answer(self.addr, 'list')
     self.load_commands(result)
     self.run()
Exemplo n.º 4
0
 def connect(self, host, port):
     self.init = False
     self.addr = (host, port)
     result = json_rpc.get_answer(self.addr, 'list')
     self.load_commands(result)
     self.run()