[Twisted-Python] How do I make a Twisted server 'look' like it's synchronous?

Itamar Shtull-Trauring itamar at itamarst.org
Mon Jul 28 18:21:24 MDT 2003


On Mon, 28 Jul 2003 20:11:46 -0400
Victor Ng <vng1 at mac.com> wrote:

> I'm pretty confused with how to write an XMLRPC method that runs for a
> 
> long time.  For example - I have an XMLRPC call that will do a
> database fetch.

Database fetch returns Deferred. Your xml-rpc method can return a
Deferred. I suggest reading the Deferred docs and ignoring Handler.

-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list