[Twisted-Python] HTTP Proxy client?

2009-04-09 Thread Alec Flett
Is there any way to make twisted.web.client talk through an HTTP proxy? I don't know enough about http to know if its as simple as opening the connection to the proxy and just including the full URL in the GET line? Alec ___ Twisted-Python mailing

Re: [Twisted-Python] [Q] multi-process chat client and poller

2009-01-14 Thread Alec Flett
On Jan 13, 2009, at 10:56 PM, V S P wrote: Hi, Another option for me of course TAO ORB, or as you pointed out Erlang RabbitMQ (especially since Erlang was designed to do this), or as people suggested one of the open source Message Queuing systems. For simple service discovery on a networ

Re: [Twisted-Python] python properties in twisted don't work

2008-12-18 Thread Alec Flett
On Dec 18, 2008, at 6:04 AM, Drew Smathers wrote: Protocol is an old-style class - doesn't inherit from object - so property won't work in that context. This won't be a problem in python 3 - old-style/new-style classes are consolidated. Is there any interest in adding 'object' to some of th

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

[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] Compress/deflate support for getPage...

2008-12-08 Thread Alec Flett
Along similar lines, is there a better API than getPage() that allows you to get headers, content-type, etc? The below could be easiliy implemented as a callback if the callback knew what headers it got, so it knew whether or not to deflate the body. Alec On Dec 8, 2008, at 4:00 PM, Sam's

[Twisted-Python] one-shot reactor?

2008-12-05 Thread Alec Flett
Hey folks - So I'm trying what seems to be a fairly unusual use of Twisted, but I'm hoping that someone out there has tried the same thing as me and can offer some pointers. Bear with me as I explain how we're set up. The issues I'm having are at the end.. We're running Pylons as our appse