Execute a command and return the result
(self, com)
| 135 | raise IOError('Access Denied.') |
| 136 | |
| 137 | def execute(self, com): |
| 138 | """Execute a command and return the result""" |
| 139 | # send command to server |
| 140 | self.send(com) |
| 141 | |
| 142 | # receive result |
| 143 | result = self.receive() |
| 144 | self.__info = self.recv_c_str() |
| 145 | if not self.server_response_success(): |
| 146 | raise IOError(self.__info) |
| 147 | return result |
| 148 | |
| 149 | def query(self, querytxt): |
| 150 | """Creates a new query instance (having id returned from server).""" |
nothing calls this directly
no test coverage detected