[Twisted-Python] How to force synchronous behavior

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Mon Oct 31 08:56:20 EST 2005


Pedro Sanchez wrote:
> But, the behavior of the authentication wrapper is synchronous. That is,
> access to the system cannot be granted until all deferred operations
> have happended.

Maybe I'm underestimating your problem, but that sounds to me like Deferred
chaining is all you need. Merge the pending Deferreds into a DeferredList and
then append your login procedure to that.

Stefan





More information about the Twisted-Python mailing list