def _xmlrpc_func(func): """Inner function for XML-RPC method decoration. Adds a signature to the method passed to it. func The function to add the signature to """ # If name is not None, register the method with the dispatcher. from django_xmlrpc.views import xmlrpcdispatcher if name is not None: xmlrpcdispatcher.register_function(func, name) # Add a signature to the function func._xmlrpc_signature = {'returns': returns, 'args': args} return func
def _xmlrpc_func(func): """Inner function for XML-RPC method decoration. Adds a signature to the method passed to it. func The function to add the signature to """ # If name is not None, register the method with the dispatcher. from django_xmlrpc.views import xmlrpcdispatcher if name is not None: xmlrpcdispatcher.register_function(func, name) # Add a signature to the function func._xmlrpc_signature = {"returns": returns, "args": args} return func
def register_xmlrpc(fn, *args, **kw): xmlrpcdispatcher.register_function(fn, uri) return fn