Re: [Twisted-Python] HTTPClientFactory's deferred never finishing download on .vcf (vcard file) link

2009-10-29 Thread sstein...@gmail.com
On Oct 29, 2009, at 11:05 PM, exar...@twistedmatrix.com wrote: > They're not really split. The 3987 branch is complete and usable on > its > own. You don't need a checkout of the 886 branch. Cool, maybe that could be noted in the ticket(s)? Thanks, S _

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread exarkun
On 01:26 am, mithra...@mithrandi.net wrote: >On Thu, Oct 29, 2009 at 8:38 PM, Brian Granger > wrote: >>One question though - can someone explain the need/usage cases for >>task.Clock and the other things in task? > >Clock is a "fake" IReactorTime implementation; as the docstring says, >it is inten

Re: [Twisted-Python] HTTPClientFactory's deferred never finishing download on .vcf (vcard file) link

2009-10-29 Thread exarkun
On 29 Oct, 11:34 pm, list...@integrateddevcorp.com wrote: >On Oct 10, 2009, at 5:15 PM, exar...@twistedmatrix.com wrote: >>>Where might that be hiding? I'd love to have something that does >>>deferreds like Twisted and also implements all of urllib2. I find >>>the >>>info() from urlopen() particu

[Twisted-Python] Working on multiple Twisted branches

2009-10-29 Thread sstein...@gmail.com
So... I am very interested in the improvements to the Twisted Web Client portion of Twisted and have been wanting to review two tickets/ branches in particular; 3987 and 886. Today I finally got around to getting the branches checked out and merged, with some great help from

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Tristan Seligmann
On Thu, Oct 29, 2009 at 8:38 PM, Brian Granger wrote: > One question though - can someone explain the need/usage cases for > task.Clock and the other things in task? Clock is a "fake" IReactorTime implementation; as the docstring says, it is intended for writing unit tests where you want control

Re: [Twisted-Python] HTTPClientFactory's deferred never finishing download on .vcf (vcard file) link

2009-10-29 Thread Steve Steiner (listsin)
On Oct 10, 2009, at 5:15 PM, exar...@twistedmatrix.com wrote: >> Where might that be hiding? I'd love to have something that does >> deferreds like Twisted and also implements all of urllib2. I find >> the >> info() from urlopen() particularly helpful when debugging issues like >> this. > > h

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Steve Steiner (listsin)
On Oct 29, 2009, at 3:29 PM, Steve Steiner (listsin) wrote: > On Oct 29, 2009, at 2:01 PM, Terry Jones wrote: > >>> "Steve" == Steve Steiner (listsin) >>> writes: >> Steve> curl http://localhost/w3c-validator/check <-- >> returns >> HTML code >> Steve> any browser t

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Steve Steiner (listsin)
On Oct 29, 2009, at 2:01 PM, Terry Jones wrote: >> "Steve" == Steve Steiner (listsin) >> writes: > Steve> curl http://localhost/w3c-validator/check<-- > returns > HTML code > Steve> any browser to http://localhost/w3c-validator/check <-- > returns HTML c

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Brian Granger
> Hi Brian > > Forgive me for butting in, but why :-) > > Helpful butting in is more than fine.. > Importing the reactor is no big deal, and if you use task.deferLater, apart > from not having to write any code you also have the advantage of being able > to pass it a result that the deferred

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Terry Jones
> "Steve" == Steve Steiner (listsin) writes: Steve> curl http://localhost/w3c-validator/check <-- returns HTML code Steve> any browser to http://localhost/w3c-validator/check <-- returns HTML code Steve> t.w.c.getPage("http://localhost/w3c-validator/check";) <--

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Kevin Horn
On Thu, Oct 29, 2009 at 12:36 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > On Oct 29, 2009, at 1:10 PM, Maarten ter Huurne wrote: > > > On Thursday 29 October 2009, Steve Steiner (listsin) wrote: > > > >> I can browse to either URL in any browser, getPage() works fine on >

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Steve Steiner (listsin)
On Oct 29, 2009, at 1:10 PM, Maarten ter Huurne wrote: > On Thursday 29 October 2009, Steve Steiner (listsin) wrote: > >> I can browse to either URL in any browser, getPage() works fine on >> the >> external address, 404's on the localhost address. > > Does the same thing happen with "127.0.0.1"

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Maarten ter Huurne
On Thursday 29 October 2009, Steve Steiner (listsin) wrote: > I can browse to either URL in any browser, getPage() works fine on the > external address, 404's on the localhost address. Does the same thing happen with "127.0.0.1" instead of "localhost" in the URL? I once encountered a nasty setup

[Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Steve Steiner (listsin)
I can browse to either URL in any browser, getPage() works fine on the external address, 404's on the localhost address. Any insight greatly appreciated; this is about as simple a test case as there can be and I'm mystified as to why it's not working. Of course, that probably means I'll fe

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Terry Jones
> "Brian" == Brian Granger writes: Brian> I looked at deferLater, but am not using it right now. The sleep Brian> function I am using is basically the same as this - in my case Brian> "sleep" turned out to be a little simpler because I don't have to Brian> create and pass the clock around. B

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Brian Granger
Glyph, In general, please reply on this list inline, with quoting and trimming, > like so: > > http://en.wikipedia.org/wiki/Posting_style#Inline_replying > > This might seem like a minor thing, but it really helps those of us who > have to follow long discussions and many mailing lists. > So

[Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-10-29 Thread naman jain
Hi, I wanted to log in a file and keep the console also going with it. I am using log.startLogging(open(logname, 'w')) whatever documentation I could find about this API, it suggested me to pass setStdout=False(in order to keep stdout away from putting into log) somewhere in the startlogging fun

Re: [Twisted-Python] sleeping in inlineCallbacks

2009-10-29 Thread Glyph Lefkowitz
Hi Brian, In general, please reply on this list inline, with quoting and trimming, like so: http://en.wikipedia.org/wiki/Posting_style#Inline_replying This might seem like a minor thing, but it really helps those of us who have to follow long discussions and many mailing lists. Now,