Re: [Twisted-Python] Creating a COM object in a thread

2010-06-30 Thread Hugh Emberson
The way I do this is I isolate all the COM stuff in a separate thread from thread that runs my reactor. This thread starts by calling:     pythoncom.CoInitializeEx(pythoncom.COINIT_APARTMENTTHREADED) it then creates the COM object and runs an event loop something like this:     while keepRunnin

Re: [Twisted-Python] getting all results from DeferredList

2010-06-30 Thread Pet
On Wed, Jun 30, 2010 at 8:42 PM, wrote: > On 02:41 pm, petshm...@googlemail.com wrote: >>Hello, >> >>I'm trying to process results from several Deferreds (d1, d2) with >>DeferredList, merging it into one list and sending back to client. > > You might like twisted.internet.defer.gatherResults. >>

Re: [Twisted-Python] getting all results from DeferredList

2010-06-30 Thread exarkun
On 02:41 pm, petshm...@googlemail.com wrote: >Hello, > >I'm trying to process results from several Deferreds (d1, d2) with >DeferredList, merging it into one list and sending back to client. You might like twisted.internet.defer.gatherResults. > >While merging works, the client has no results. Wha

Re: [Twisted-Python] qt4 reactor status

2010-06-30 Thread Glenn Tarbox, PhD
On Tue, Jun 29, 2010 at 11:31 PM, Steve Castellotti wrote: > On Tue, 2010-06-29 at 23:04 -0700, Glenn Tarbox, PhD wrote: > > Any of the code that was developed while the reactor was in Twisted > itself is MIT licensed. Perhaps that means you only need to track down > people who contributed afte

[Twisted-Python] getting all results from DeferredList

2010-06-30 Thread Pet
Hello, I'm trying to process results from several Deferreds (d1, d2) with DeferredList, merging it into one list and sending back to client. While merging works, the client has no results. What is the way to do tasks (db queries in my case) in parallel and then merge results? BTW, are nested runI