The CGIXMLRPCRequestHandler class can be used to handle XML-RPC requests sent to Python CGI scripts.
function[, name]) |
instance) |
) |
system.listMethods
, system.methodHelp
and
system.methodSignature
.
) |
system.multicall
.
[request_text = None]) |
Example:
class MyFuncs: def div(self, x, y) : return div(x,y) handler = CGIXMLRPCRequestHandler() handler.register_function(pow) handler.register_function(lambda x,y: x+y, 'add') handler.register_introspection_functions() handler.register_instance(MyFuncs()) handler.handle_request()