[Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Phil Mayers
Is there any support, or any interest in / way to add support for deferred cancellation in pb? Specifically I'd like do have something like: class blah(pb...): def remote_somelongtask(self, args): ... taskid = somefunc() d = defer.Deferred(lambda : canceltask(taskid)) return d

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread exarkun
On 12:03 pm, p.may...@imperial.ac.uk wrote: Is there any support, or any interest in / way to add support for deferred cancellation in pb? Specifically I'd like do have something like: class blah(pb...): def remote_somelongtask(self, args): ... taskid = somefunc() d = defer.Defer

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Laurens Van Houtven
+1, particularly for AMP ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Phil Mayers
On 18/09/13 13:34, exar...@twistedmatrix.com wrote: On 12:03 pm, p.may...@imperial.ac.uk wrote: Is there any support, or any interest in / way to add support for deferred cancellation in pb? Specifically I'd like do have something like: class blah(pb...): def remote_somelongtask(self, args):

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Phil Mayers
On 18/09/13 14:00, Phil Mayers wrote: I'll have a look, but from the responses I'll assume neither pb nor AMP can do this, and will file a couple of tickets for reference. #6753 and #6754, for the curious. As the latter indicates, I don't really understand the AMP stuff; I got stuck in a twis

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread exarkun
On 04:08 pm, p.may...@imperial.ac.uk wrote: On 18/09/13 17:00, bu...@nehbit.net wrote: +1 for AMP. Wow, lots of people using AMP. Maybe I'm missing out on something... Don't people miss the symmetry of PB? Not to mention you can be lazy and avoid defining a schema! Or are people using Twiste

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread burak
+1 for AMP. Best, Burak On Sep 18, 2013, at 9:17, Phil Mayers wrote: > On 18/09/13 14:00, Phil Mayers wrote: > >> I'll have a look, but from the responses I'll assume neither pb nor AMP >> can do this, and will file a couple of tickets for reference. > > #6753 and #6754, for the curious. As

Re: [Twisted-Python] Twisted at PyConUK 2013

2013-09-18 Thread Phil Mayers
On 17/09/13 19:08, Glyph wrote: On Sep 17, 2013, at 10:43 AM, Phil Mayers mailto:p.may...@imperial.ac.uk>> wrote: On 17/09/13 17:05, exar...@twistedmatrix.com wrote: p.s. the "How to review" docs on Trac are AWFUL if you've never done one before. It assumes

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Phil Mayers
On 18/09/13 17:00, bu...@nehbit.net wrote: +1 for AMP. Wow, lots of people using AMP. Maybe I'm missing out on something... Don't people miss the symmetry of PB? Not to mention you can be lazy and avoid defining a schema! Or are people using Twisted->Other AMP connections? _

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Burak Nehbit
My reasons are simpler: PB expects me to build my application to suit it, whereas AMP is small enough to insert into an existing application. It does one single thing and does it well. Caveat emptor, though, I'm still a Twisted newbie—I do understand AMP, but PB is right now way, way over my hea

Re: [Twisted-Python] Cancelling a pb callRemote

2013-09-18 Thread Werner Thie
+1 for pb +1 for AMP Werner On 9/18/13 6:08 AM, Phil Mayers wrote: On 18/09/13 17:00, bu...@nehbit.net wrote: +1 for AMP. Wow, lots of people using AMP. Maybe I'm missing out on something... Don't people miss the symmetry of PB? Not to mention you can be lazy and avoid defining a schema! Or

[Twisted-Python] How to disconnect an HTTP connection and notify the far end

2013-09-18 Thread Bob Novas
I've got a question on how to explicitly disconnect a connection from the client side so that the server side knows that the connection has been disconnected. I'd be happy if this worked even with no guarantees, i.e., only when the client and server were in fact well-connected. It's just an optimiz

Re: [Twisted-Python] Twisted at PyConUK 2013

2013-09-18 Thread Glyph
On Sep 18, 2013, at 9:02 AM, Phil Mayers wrote: > Hope this is useful. I probably am overstating how painful it was - I did get > it done after all, and it'll be easier 2nd time around - but you guys keep > saying you want more reviewers ;o) Definitely useful to get some perspective on this,