Re: [Twisted-Python] deferring result to PB a callRemote method

2010-01-19 Thread Kevin Horn
On Mon, Jan 18, 2010 at 7:19 PM, Andrew Bennetts wrote: > >Google is my friend but I could not find examples of this usage. Is > there > >any references to this usage in the twisted docs? > > > Huh, surprisingly not in the primary PB docs. The Twisted “finger” > tutorial > does do this, t

Re: [Twisted-Python] deferring result to PB a callRemote method

2010-01-18 Thread Andrew Bennetts
Chris Laws wrote: [...] >I think the simple answer to my question is to just return a deferred as >the result to the callRemote("shutdown")�method and trigger it as normal. Yes, that's right. You can return Deferreds from your PB server's methods. So long as the eventual result is someth