[Twisted-Python] xmlrpc and deferred result doubts
exarkun at divmod.com
Sun Feb 5 16:44:44 EST 2006
On Sun, 05 Feb 2006 19:09:06 -0200, Gustavo Rahal <gustavo at grahal.net> wrote:
>I have a doubt about how to factor the an xmlrpc server code.
>Basicly what happens is:
>def xmlrpc_runCmd(self, hostname, command):
> # I call a method that returns a deferred and because of that I
> # don't have anything to return to the xmlrpc client.
> runComm = conn.runCommand(hostname, command)
> # the line below doesn't make much sense because the output needs to
> # return to the xmlrpc client
Return runComm instead. Also, <mailto:twisted-web at twistedmatrix.com> for web questions.
More information about the Twisted-Python