Re: [Twisted-Python] Looping

2009-01-05 Thread Rob Hoadley
So one problem is understanding the reactor. It's only meant to be run once. Some of your code looks like it's trying to start it more than once. You only want one started at a time or weird things happen. I'd start here and make sure you understand the reactor: http://twistedmatrix.com/proje

Re: [Twisted-Python] Looping

2009-01-05 Thread Robert Hancock
I understand how the deferreds can create concurrency, but I still cant' figure out how to get the process to loop correctly I changed the code to use multiple deffereds, but I feel I'm missing a basic architectural design on how to get the process to run in a loop. Any help would be greatly appr

Re: [Twisted-Python] Perspective broker and inlineCallbacks exception handling problem

2009-01-05 Thread Terry Jones
Hi Maik I'm not an expert on inlineCallbacks, but I know enough to give something of an answer. > I am developing a basic client/server application based on twisted. > For communication purposes I am using perspective broker. I have > problems with inlineCallbacks and remotely raised errors: > >

Re: [Twisted-Python] Looping

2009-01-05 Thread Drew Smathers
On Sun, Jan 4, 2009 at 11:23 PM, Robert Hancock wrote: >> How many urls are in url_tuples? > 4 - 32 >> Is there a reason why you're using just one deferred? > What is the advantage of using more? > Concurrency. -Drew ___ Twisted-Python mailing list Tw

[Twisted-Python] Perspective broker and inlineCallbacks exception handling problem

2009-01-05 Thread Maik Friedmann
Hello, I am developing a basic client/server application based on twisted. For communication purposes I am using perspective broker. I have problems with inlineCallbacks and remotely raised errors: My client code looks like this (pseudo code): class Client: @defer.inlineCallbacks def login(s

Re: [Twisted-Python] Looping

2009-01-05 Thread Andy Fundinger
> > > > Is there a reason why you're using just one deferred? > What is the advantage of using more? > If you use more with a DeferredList you can have [effectively] parallel page fetches. It's like spawning threads for each page, but twisted doesn't actually spawn threads for this I don't think.