Ejemplo n.º 1
0
 def set(self, body, param):
     success, response = protocol.send_command(self.f, body, param,
                                               self.encoding)
     if not success:
         raise ProjectorError(response)
     assert response == 'OK'
Ejemplo n.º 2
0
 def set(self, body, param):
     success, response = protocol.send_command(self.f, body, param)
     if not success:
         raise ProjectorError(response)
     assert response == 'OK'
Ejemplo n.º 3
0
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?',
                                               self.encoding)
     if not success:
         raise ProjectorError(response)
     return response
Ejemplo n.º 4
0
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?')
     if not success:
         raise ProjectorError(response)
     return response