[Twisted-Python] DeferredList?

Phil Mayers p.mayers at imperial.ac.uk
Tue Feb 26 16:33:32 MST 2008


You are creating the DeferredList before getNetworkElements has 
callback'ed - i.e. it's empty.

Move the creation of the DeferredList (and adding it's callback) to just 
before the "return" in "printResult"


>     g = getNetworkElements().addCallback(printResult)
>     dl = defer.DeferredList(deferred_list, 0, 0, 1 )
>     print dir(dl)
>     dl.addCallback(exiter)
>    
>     reactor.run()
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list