Python SimpleXMLRPCServer.SimpleXMLRPCDispatcher() Examples
The following are 1
code examples of SimpleXMLRPCServer.SimpleXMLRPCDispatcher().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
SimpleXMLRPCServer
, or try the search function
.
Example #1
Source File: xmlrpc.py From termite-visualizations with BSD 3-Clause "New" or "Revised" License | 5 votes |
def handler(request, response, methods): response.session_id = None # no sessions for xmlrpc dispatcher = SimpleXMLRPCDispatcher(allow_none=True, encoding=None) for method in methods: dispatcher.register_function(method) dispatcher.register_introspection_functions() response.headers['Content-Type'] = 'text/xml' dispatch = getattr(dispatcher, '_dispatch', None) return dispatcher._marshaled_dispatch(request.body.read(), dispatch)