La classe CGIXMLRPCRequestHandler può essere usata per gestire richieste XML-RPC inviate a script CGI Python.
function[, name]) |
instance) |
) |
system.listMethods
, system.methodHelp
e
system.methodSignature
.
) |
system.multicall
.
[request_text = None]) |
Esempio:
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()