Re: [Twisted-Python] spawnProcess help needed

2008-12-10 Thread Phil Christensen
On Dec 9, 2008, at 5:41 PM, Jean-Paul Calderone wrote: On Tue, 9 Dec 2008 15:43:00 -0500, Phil Christensen <[EMAIL PROTECTED] > wrote: Everything is basically working, except for the fact that the md5sum processes never go away. It does seem that processEnded is being called, since that's wh

Re: [Twisted-Python] wxpython and xmlrpc via twisted

2008-12-10 Thread Ian Jones
"There's probably no good reason to subclass both of these" I'm relatively new to python so sorry if this should be obvious - but how else would I get the functionality of both classes if I did subclass both of them? Ian On Tue, Dec 9, 2008 at 4:08 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wr

Re: [Twisted-Python] wxpython and xmlrpc via twisted

2008-12-10 Thread Ian Jones
didn't subclass both of them rather. On Wed, Dec 10, 2008 at 8:54 AM, Ian Jones <[EMAIL PROTECTED]> wrote: > "There's probably no good reason to subclass both of these" > > I'm relatively new to python so sorry if this should be obvious - but > how else would I get the functionality of both class

Re: [Twisted-Python] wxpython and xmlrpc via twisted

2008-12-10 Thread Jean-Paul Calderone
On Wed, 10 Dec 2008 08:54:49 -0800, Ian Jones <[EMAIL PROTECTED]> wrote: "There's probably no good reason to subclass both of these" I'm relatively new to python so sorry if this should be obvious - but how else would I get the functionality of both classes if I did subclass both of them? Crea

Re: [Twisted-Python] spawnProcess help needed

2008-12-10 Thread Cary Hull
Just an fyi, you don't need to code your own process protocol for programs like md5sum. Take a look at twisted.internet.utils.getProcessOutput. -Cary On Wed, Dec 10, 2008 at 8:45 AM, Phil Christensen <[EMAIL PROTECTED]> wrote: > On Dec 9, 2008, at 5:41 PM, Jean-Paul Calderone wrote: > > On Tue, 9

Re: [Twisted-Python] Running commands / collecting datas via SSH on many machines: Twisted vs plain old scripts ?

2008-12-10 Thread Suchindra Sandhu
Hi Alessio, If you have many machines, then running commands via a shell script for loop quickly gets un-weildly. Especially since some machines could be slow in responding since they could be busy, faroff etc or it your command itself takes a long time to complete. Doing this in twisted will not

Re: [Twisted-Python] lost tracebacks?

2008-12-10 Thread Alec Flett
Ah, I found the problem, for anyone else who runs into this... I am collecting stacks using the logging system's addObserver() - trying to access the traceback from a garbage-collected deferred. Turns out when the deferred is garbage collected, the failure is pickled (to avoid leaks) and so

Re: [Twisted-Python] lost tracebacks?

2008-12-10 Thread glyph
On 08:42 pm, [EMAIL PROTECTED] wrote: I was hoping for a "real" traceback because Paste's EvalException middleware does a nice job debugging "live" stacks, but the 'verbose' stack is a pretty decent stand-in. There's a good reason not to hang on to the "real" traceback. Failures with verbos

Re: [Twisted-Python] lost tracebacks?

2008-12-10 Thread Jean-Paul Calderone
On Wed, 10 Dec 2008 22:08:52 -, [EMAIL PROTECTED] wrote: On 08:42 pm, [EMAIL PROTECTED] wrote: I was hoping for a "real" traceback because Paste's EvalException middleware does a nice job debugging "live" stacks, but the 'verbose' stack is a pretty decent stand-in. There's a good reason

Re: [Twisted-Python] twisted reverse proxy for web filtering

2008-12-10 Thread Mike Kazantsev
On Sun, 30 Nov 2008 21:54:17 -0600 "dave fowler" <[EMAIL PROTECTED]> wrote: > I'd like to use python and in my research I think a twisted reverse proxy is > what I want. I've done the examples for setting up a proxy, including one > that counts the words on the pages you visit, but i cannot find

Re: [Twisted-Python] Running commands / collecting datas via SSH on many machines: Twisted vs plain old scripts ?

2008-12-10 Thread Alessio Pace
On Wed, Dec 10, 2008 at 8:02 PM, Suchindra Sandhu <[EMAIL PROTECTED]>wrote: > Hi Alessio, > > If you have many machines, then running commands via a shell script > for loop quickly gets un-weildly. Especially since some machines could > be slow in responding since they could be busy, faroff etc or