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

2010-01-19 Thread Chris Laws
> >* >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, though, if you read it care

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

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

2010-01-18 Thread Chris Laws
I am writing a tool for work that will run various software development aids such as message capturing and diagnostic control of system processes. My current design strategy is to implement these aids as plugins (not twisted plugins) to a generic plugin runner rather than stand alone applications.