def xmlrpc(self, request, methods): """ assuming: > def add(a,b): return a+b if a controller function \"func\" > return response.xmlrpc(request,[add]) the controller will be able to handle xmlrpc requests for the add function. Example: > import xmlrpclib > connection=xmlrpclib.ServerProxy('http://hostname/app/contr/func') > print connection.add(3,4) """ self.body = handler(request, self, methods) return self.body