class documentation

Undocumented

Method lookupProcedure Given a string naming a procedure, return a callable object for that procedure or raise NoSuchFunction.
Method xmlrpc_add This function add two numbers.
Method xmlrpc_complex Undocumented
Method xmlrpc_defer Help for defer.
Method xmlrpc_deferFail Undocumented
Method xmlrpc_deferFault Undocumented
Method xmlrpc_dict Undocumented
Method xmlrpc_echo Undocumented
Method xmlrpc_fail Undocumented
Method xmlrpc_fault Undocumented
Method xmlrpc_pair This function puts the two arguments in an array.
Method xmlrpc_snowman Used to test that we can pass Unicode.
Method xmlrpc_withRequest A method decorated with withRequest which can be called by a test to verify that the request object really is passed as an argument.
Constant FAILURE Undocumented
Constant NOT_FOUND Undocumented
Constant SESSION_EXPIRED Undocumented

Inherited from XMLRPC:

Method __init__ Initialize.
Method __setattr__ Undocumented
Method getSubHandler Undocumented
Method getSubHandlerPrefixes Undocumented
Method listProcedures Return a list of the names of all xmlrpc procedures.
Method putSubHandler Undocumented
Method render_POST Undocumented
Class Variable allowedMethods Undocumented
Class Variable isLeaf Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.
Class Variable separator Undocumented
Instance Variable allowNone Permit XML translating of Python constant None.
Instance Variable subHandlers Undocumented
Instance Variable useDateTime Present datetime values as datetime.datetime objects?
Method _cbRender Undocumented
Method _ebRender Undocumented
Class Variable _log Undocumented

Inherited from Resource (via XMLRPC):

Method delEntity Undocumented
Method getChild Retrieve a 'child' resource from me.
Method getChildForRequest Deprecated in favor of getChildForRequest.
Method getChildWithDefault Retrieve a static or dynamically generated child resource from me.
Method getDynamicEntity Undocumented
Method getStaticEntity Undocumented
Method listDynamicEntities Undocumented
Method listDynamicNames Undocumented
Method listEntities Undocumented
Method listNames Undocumented
Method listStaticEntities Undocumented
Method listStaticNames Undocumented
Method putChild Register a static child.
Method reallyPutEntity Undocumented
Method render Render a given resource. See IResource's render method.
Method render_HEAD Default handling of HEAD method.
Class Variable server Undocumented
Instance Variable children Undocumented
def lookupProcedure(self, procedurePath): (source)

Given a string naming a procedure, return a callable object for that procedure or raise NoSuchFunction.

The returned object will be called, and should return the result of the procedure, a Deferred, or a Fault instance.

Override in subclasses if you want your own policy. The base implementation that given 'foo', self.xmlrpc_foo will be returned. If procedurePath contains self.separator, the sub-handler for the initial prefix is used to search for the remaining path.

If you override lookupProcedure, you may also want to override listProcedures to accurately report the procedures supported by your resource, so that clients using the system.listMethods procedure receive accurate results.

Present Since
11.1
def xmlrpc_add(self, a, b): (source)

This function add two numbers.

def xmlrpc_complex(self): (source)

Undocumented

def xmlrpc_defer(self, x): (source)

Help for defer.

def xmlrpc_deferFail(self): (source)

Undocumented

def xmlrpc_deferFault(self): (source)

Undocumented

def xmlrpc_dict(self, map, key): (source)

Undocumented

def xmlrpc_echo(self, arg): (source)

Undocumented

def xmlrpc_fail(self): (source)

Undocumented

def xmlrpc_fault(self): (source)

Undocumented

def xmlrpc_pair(self, string, num): (source)

This function puts the two arguments in an array.

def xmlrpc_snowman(self, payload): (source)

Used to test that we can pass Unicode.

@withRequest
def xmlrpc_withRequest(self, request, other): (source)

A method decorated with withRequest which can be called by a test to verify that the request object really is passed as an argument.

Undocumented

Value
666
NOT_FOUND: int = (source)

Undocumented

Value
23
SESSION_EXPIRED: int = (source)

Undocumented

Value
42