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

Victor Ng vng1 at mac.com
Mon Jul 28 21:07:37 MDT 2003


Excellent - I managed to get stuff working using both a simple add 
method and a database call.

Is Handler deprecated?  The API documentation is unclear about using 
(or ignoring) Handler.

vic

On Monday, July 28, 2003, at 08:21  PM, Itamar Shtull-Trauring wrote:

> 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
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>





More information about the Twisted-Python mailing list