Lines Matching refs:_dispatch
64 def _dispatch(self, method, params):
80 def _dispatch(self, method, params):
178 If the registered instance has a _dispatch method then that
181 e.g. instance._dispatch('add',(2,3))
183 If the registered instance does not have a _dispatch method
193 instance does not have a _dispatch method, method names
248 using the _dispatch method and the result is returned as
263 response = self._dispatch(method, params)
290 # if the instance has a _dispatch method then we
293 elif not hasattr(self.instance, '_dispatch'):
322 # if the instance has a _dispatch method then we
324 elif not hasattr(self.instance, '_dispatch'):
359 results.append([self._dispatch(method_name, params)])
372 def _dispatch(self, method, params):
380 If the registered instance has a _dispatch method then that
383 e.g. instance._dispatch('add',(2,3))
385 If the registered instance does not have a _dispatch method
404 if hasattr(self.instance, '_dispatch'):
405 # call the `_dispatch` method on the instance
406 return self.instance._dispatch(method, params)
470 which are forwarded to the server's _dispatch method for handling.
499 # In previous versions of SimpleXMLRPCServer, _dispatch
502 # check to see if a subclass implements _dispatch and dispatch
505 data, getattr(self, '_dispatch', None), self.path
576 installed in the server. Override the _dispatch method inherited
853 _dispatch method. Alternatively, instances can choose to implement
874 elif not hasattr(self.instance, '_dispatch'):