Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (17 sloc) 749 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <>
License: LGPLv3 (
from SimpleXMLRPCServer import SimpleXMLRPCDispatcher
def handler(request, response, methods):
response.session_id = None # no sessions for xmlrpc
dispatcher = SimpleXMLRPCDispatcher(allow_none=True, encoding=None)
for method in methods:
response.headers['Content-Type'] = 'text/xml'
dispatch = getattr(dispatcher, '_dispatch', None)
return dispatcher._marshaled_dispatch(, dispatch)
Something went wrong with that request. Please try again.