Re: [Twisted-Python] Deferred question

2008-12-09 Thread Gabriel Rossetti
James Y Knight wrote: On Dec 9, 2008, at 4:09 AM, Gabriel Rossetti wrote: Forget it, I monkey-patched defer.Deferred to add __del__ to see if it was called, and it was, so they are getting destroyed... BTW, that is not a good way to tell if objects are being deleted. Simply the act of adding

Re: [Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread Gabriel Rossetti
Jean-Paul Calderone wrote: On Tue, 09 Dec 2008 17:12:32 +0100, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: tarjei wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Rossetti wrote: Hello eveyone, is there a way to see how many msgs have been received and are waiting to be processe

Re: [Twisted-Python] lost tracebacks?

2008-12-09 Thread glyph
On 12:41 am, [EMAIL PROTECTED] wrote: I traced this down to the code in Deferred._runCallbacks() which does a try: / except: with:: self.result = failure.Failure() Seems like this code should say:: exc_type, exc_value, exc_traceback = sys.exc_info() self.result = failure.Failure(e

[Twisted-Python] lost tracebacks?

2008-12-09 Thread Alec Flett
So I am constantly "losing" my tracebacks when my defer's callbacks throw exceptions that aren't caught. When I get an uncaught exception (caught via twisted.log.addObserver()) I am basically storing the Failure instance and then later, when it's safe for me to do so, calling fail.raiseExce

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

2008-12-09 Thread Jean-Paul Calderone
On Tue, 9 Dec 2008 15:27:00 -0800, Ian Jones <[EMAIL PROTECTED]> wrote: I'm trying to create a taskbar app (in wxpython) to monitor job progress on a render farm. I'd like the taskbar app to have an xmlrpc server built in so that other applications can inform the taskbar app additional jobs to mo

[Twisted-Python] wxpython and xmlrpc via twisted

2008-12-09 Thread Ian Jones
I'm trying to create a taskbar app (in wxpython) to monitor job progress on a render farm. I'd like the taskbar app to have an xmlrpc server built in so that other applications can inform the taskbar app additional jobs to monitor. I found this recipe online which is a great example of the functio

Re: [Twisted-Python] spawnProcess help needed

2008-12-09 Thread Jean-Paul Calderone
On Tue, 9 Dec 2008 15:43:00 -0500, Phil Christensen <[EMAIL PROTECTED]> wrote: Hello All- I'm running into an issue with a project I'm working on that involves coordinating a large number of external processes to encode audio into different formats, and do other bookkeeping. I seem to be hav

Re: [Twisted-Python] PDF I thought may be of interest

2008-12-09 Thread glyph
On 10:06 pm, [EMAIL PROTECTED] wrote: Looking slightly below the surface of things, it appears to be advocating something more like stackless's tasklets, rather than OS level threads (since it makes reference near the end to Erlang's threading model). Yes, and for this reason I found the pape

[Twisted-Python] PDF I thought may be of interest

2008-12-09 Thread Michael
Hi, I came across this livejournal entry today: * http://four.livejournal.com/934085.html Which has this link: http://s3.amazonaws.com/four.livejournal/20081209/threads-hotos-2003.pdf .. which is a paper by Rob von Behren, Jeremy Condit and Eric Brewer. I personally raised an eyebrow when

[Twisted-Python] spawnProcess help needed

2008-12-09 Thread Phil Christensen
Hello All- I'm running into an issue with a project I'm working on that involves coordinating a large number of external processes to encode audio into different formats, and do other bookkeeping. I seem to be having a problem when I use spawnProcess to call the md5sum binary. The process

Re: [Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread Jean-Paul Calderone
On Tue, 09 Dec 2008 17:12:32 +0100, Gabriel Rossetti <[EMAIL PROTECTED]> wrote: tarjei wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Rossetti wrote: Hello eveyone, is there a way to see how many msgs have been received and are waiting to be processed by a client? Hi, I think

Re: [Twisted-Python] Deferred question

2008-12-09 Thread James Y Knight
On Dec 9, 2008, at 4:09 AM, Gabriel Rossetti wrote: Forget it, I monkey-patched defer.Deferred to add __del__ to see if it was called, and it was, so they are getting destroyed... BTW, that is not a good way to tell if objects are being deleted. Simply the act of adding a __del__ to an objec

Re: [Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread Gabriel Rossetti
tarjei wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Rossetti wrote: Hello eveyone, is there a way to see how many msgs have been received and are waiting to be processed by a client? Hi, I think you need to be far more specific if you want an answer. Which protocol is

Re: [Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread tarjei
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Rossetti wrote: > Hello eveyone, > > is there a way to see how many msgs have been received and are waiting > to be processed by a client? Hi, I think you need to be far more specific if you want an answer. Which protocol is this for example?

[Twisted-Python] How to see the number of received msgs?

2008-12-09 Thread Gabriel Rossetti
Hello eveyone, is there a way to see how many msgs have been received and are waiting to be processed by a client? Thank you, Gabriel ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/

Re: [Twisted-Python] Deferred question

2008-12-09 Thread Gabriel Rossetti
Gabriel Rossetti wrote: Hello everyone, I have a question concerning defers, I have a service that needs to query IO until it answers. The IO can be disconnected, connected but off, connected and on; depending on the state I get different exceptions. I wrote something like : def __requestId

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

2008-12-09 Thread Alessio Pace
Hi, I have to run commands and (later in time) collect logs from many machines, connecting through SSH. I was _genuinely_ wondering what an SSH client written in Twisted could give me more than executing plain old shell scripts in a for loop. >From what I saw, given the fact that my run/collect