def _request_common(self, destination, params, debug=False, suspend=False): flatargs = _flatten.flatten(params) if debug: flatret = self._serverProxy.Analysis.handler_debug(destination, flatargs, suspend) else: flatret = self._serverProxy.Analysis.handler(destination, flatargs) unflatret = _flatten.unflatten(flatret) if (isinstance(unflatret, Exception)): raise unflatret return unflatret
def _request_common(self, destination, params, debug=False, suspend=False): flatargs = _flatten.flatten(params) if debug: flatret = self._serverProxy.Analysis.handler_debug(destination, flatargs, suspend) else: flatret = self._serverProxy.Analysis.handler(destination, flatargs) unflatret = _flatten.unflatten(flatret) if (isinstance(unflatret, Exception)): raise unflatret return unflatret
def request(self, destination, params): ''' Perform a request to the Server, directing it at the destination which was registered as the handler on the server, passing it the params specified. params must be a tuple or a list of the arguments ''' flatargs = _flatten.flatten(params) flatret = self._serverProxy.Analysis.handler(destination, flatargs) unflatret = _flatten.unflatten(flatret) if (isinstance(unflatret, Exception)): raise unflatret return unflatret