On Fri, Jun 24, 2011 at 18:23, <exar...@twistedmatrix.com> wrote: > Using the global reactor makes code less easily testable. This isn't > specific to plugins, you should avoid the global reactor in all your > Twisted-using code. Accept it as a parameter instead.
Ah, I did not do this successfully in my rewrite. I'd be interested to see an example of the correct technique to use. Is this what you mean? from twisted.internet import reactor class SetupClass(service.Service): def doStart(self, reactor=reactor): reactor.callLater(3, self.done) -- Regards, Stephen.Thorne _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python