Exemple #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'
 def set(self, body, param):
     success, response = protocol.send_command(self.f, body, param)
     if not success:
         raise ProjectorError(response)
     assert response == 'OK'
Exemple #3
0
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?',
                                               self.encoding)
     if not success:
         raise ProjectorError(response)
     return response
 def get(self, body):
     success, response = protocol.send_command(self.f, body, '?')
     if not success:
         raise ProjectorError(response)
     return response