[Twisted-Python] Reactor callback from the wrong thread

2009-05-27 Thread Lars Ivar Igesund
Hi! I have an issue where the reactor calls the callback from a different thread than the one the reactor is running in. The usecase is as follows; We are running tests using PyFit (Fitnesse), and where some of the tests depends on receiving SNMP traps in the background. So at the start we start

Re: [Twisted-Python] Processpool recommendation (for scaling to multiple CPUs)

2009-05-27 Thread Attila Nagy
gl...@divmod.com wrote: > On 08:21 pm, b...@fsn.hu wrote: > >> I've got some CPU scalability issues (the application became CPU bound, >> but there are a lot more CPUs, which can't be used because of the >> uniprocess nature), threading is not a solution, so the next logical >> move could be sta

Re: [Twisted-Python] Reactor callback from the wrong thread

2009-05-27 Thread Jean-Paul Calderone
On Wed, 27 May 2009 15:08:49 +0200, Lars Ivar Igesund wrote: >Hi! > >I have an issue where the reactor calls the callback from a different >thread than the one the reactor is running in. Generally speaking, the only callbacks the reactor invokes are protocol methods (like dataReceived and connect

[Twisted-Python] ESMTP: method DIGEST-MD5 and IP authenticator

2009-05-27 Thread Nicolas Toper
Hi, I am going to add in the ESMTP class these two authentications methods. Are you interested in a patch? Best, Nico http://www.deviant-abstraction.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/m

[Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Dan
Hi all, I have an application written in Twisted which multiplexes data from a variety of pieces of specialized hardware, and I'd like to make the live stream of this information viewable through a webpage. Unfortunately, on our server, port 80 is already taken by an Apache + mod_python +

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Greg Taylor
You might want to look into Orbited, there are a number of Django examples out there: http://www.orbited.org On Wed, May 27, 2009 at 2:39 PM, Dan wrote: > Hi all, > > I have an application written in Twisted which multiplexes data from a > variety of pieces of specialized hardware, and I'd like

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread s s
On May 27, 2009, at 3:12 PM, Greg Taylor wrote: You might want to look into Orbited, there are a number of Django examples out there: http://www.orbited.org Website seems to be down. Any idea who to ping to whack it? S ___ Twisted-Python maili

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Jean-Paul Calderone
On Wed, 27 May 2009 14:39:45 -0400, Dan wrote: >Hi all, > >I have an application written in Twisted which multiplexes data from a >variety of pieces of specialized hardware, and I'd like to make the >live stream of this information viewable through a webpage. >Unfortunately, on our server, port 80

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Dave Britton
I don't think the database option is a hack. Have twisted write the live stream items into a ring-buffer SQL database table (eg. use records 1-100 over and over again), including a timestamp for each entry. Then your django page can always retrieve the most current set of entries by SELECTing * fro

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread Alex Clemesha
On Wed, May 27, 2009 at 11:39 AM, Dan wrote: > Hi all, > > I have an application written in Twisted which multiplexes data from a > variety of pieces of specialized hardware, and I'd like to make the > live stream of this information viewable through a webpage. > Unfortunately, on our server, port

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread glyph
On 07:40 pm, exar...@divmod.com wrote: >On Wed, 27 May 2009 14:39:45 -0400, Dan wrote: >>Hi all, >> >>I have an application written in Twisted which multiplexes data from a >>variety of pieces of specialized hardware, and I'd like to make the >>live stream of this information viewable through a w

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-27 Thread s s
On May 27, 2009, at 3:48 PM, Alex Clemesha wrote: > On Wed, May 27, 2009 at 11:39 AM, Dan wrote: >> Hi all, >> >> I have an application written in Twisted which multiplexes data >> from a >> variety of pieces of specialized hardware, and I'd like to make the >> live stream of this information

[Twisted-Python] Guidance on Proxy-type Application

2009-05-27 Thread Aaron Bush
I have just started to look at the Twisted framework and would like to put it to use for a new project I am working on. Not being very familiar with the framework and fairly new to Python in general I would like to ask a design/architecture question. (I have written similar applications in C but

[Twisted-Python] twistd -y and 'adbapi.ConnectionPool.runWithConnection'

2009-05-27 Thread Joe Steeve
Hello all, I am doing a 'runWithConnection' call from the 'startService' of a service.Service. In the callback, I startup more services based on the results of the 'runWithConnection' and attach them to the main application object. This works fine when I start the script with 'twistd -noy'. Howev