twisted.web.xmlrpc.withRequest(f) function documentationtwisted.web.xmlrpc
View Source
Decorator to cause the request to be passed as the first argument to the method.
If an xmlrpc_ method is wrapped with withRequest,
the request object is passed as the first argument to that method. For
example:
@withRequest
def xmlrpc_echo(self, request, s):
return s
| Present Since | 10.2 | |