Re: [Twisted-Python] Transparent pooling of deferreds to be fired upon another deferred firing

2009-04-23 Thread Terry Jones
BTW, below is a version of my code from yesterday that works on class methods. I didn't write the __get__ code, but took it from a decorator tutorial on the web. This version works with standalone functions, and with class methods that also use @inlineCallbacks. So you can do class MyClass(

[Twisted-Python] Transparent pooling of deferreds to be fired upon another deferred firing

2009-04-22 Thread Terry Jones
I have a need to make sure that a deferred-returning function is not called multiple times, but I want to be able to write code without having to worry about that. To be more concrete: Suppose I have a function called alertSupervisor that takes a string message for the supervisor and which return