django.utils.six.moves.xmlrpc_server.SimpleXMLRPCDispatcher.__init__

Here are the examples of the python api django.utils.six.moves.xmlrpc_server.SimpleXMLRPCDispatcher.__init__ taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: patchwork
Source File: xmlrpc.py
View license
    def __init__(self):
        SimpleXMLRPCDispatcher.__init__(self, allow_none=False,
                                        encoding=None)
        XMLRPCDocGenerator.__init__(self)

        def _dumps(obj, *args, **kwargs):
            kwargs['allow_none'] = self.allow_none
            kwargs['encoding'] = self.encoding
            return xmlrpc_client.dumps(obj, *args, **kwargs)

        self.dumps = _dumps

        # map of name => (auth, func)
        self.func_map = {}

        self.threadlocal = ThreadLocalRequestMiddleware()