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

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 bro

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 th

[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] Phasing out old-style classes

2009-10-27 Thread Steve Steiner (listsin)
On Oct 27, 2009, at 8:17 AM, exar...@twistedmatrix.com wrote: >> At that point there will be two sets of users, the 3.x's that >> use only new-style classes and the 2.x's for which Twisted classes >> may be either old or new. It would probably be better to have >> switched to new-style before th

Re: [Twisted-Python] Can I post a consultant request here?

2009-10-15 Thread Steve Steiner (listsin)
On Oct 15, 2009, at 8:53 AM, Itamar Turner-Trauring (aka Shtull- Trauring) wrote: > On Thu, 2009-10-15 at 00:01 -0400, Steve Steiner (listsin) wrote: >> Hey! >> >> I apologize in advance if this type of request is not desired/ >> allowed >> on this lis

Re: [Twisted-Python] Can I post a consultant request here?

2009-10-15 Thread Steve Steiner (listsin)
On Oct 15, 2009, at 9:11 AM, Christopher Zorn wrote: On Thu, Oct 15, 2009 at 12:01 AM, Steve Steiner (listsin) > wrote: It would be much more efficient to have someone who already knows help me hook it up instead of spending an unpredictable amount of time figuring it out mys

[Twisted-Python] Can I post a consultant request here?

2009-10-14 Thread Steve Steiner (listsin)
Hey! I apologize in advance if this type of request is not desired/allowed on this list. I'm looking for a very short-term mentoring/consulting contract to help me get an Ajax/Comet type of connection working between a web interface and a fairly long-running, server-side pr

Re: [Twisted-Python] Twisted Performance

2009-10-14 Thread Steve Steiner (listsin)
Cool, please let me know off-list if you'd like a quick review before "going live." S On Oct 14, 2009, at 9:30 PM, Dave Peticolas wrote: > Steve Steiner (listsin) wrote: >> On Oct 14, 2009, at 4:55 AM, Laurens Van Houtven wrote: >>> Personally I'm

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-14 Thread Steve Steiner (listsin)
On Oct 14, 2009, at 8:26 AM, Tim Allen wrote: > On Wed, Oct 14, 2009 at 07:43:41AM -0400, Steve Steiner (listsin) > wrote: >> That's the thing about Twisted; sometimes it's hard to know whether >> the stuff that has been built into standard Python since Twiste

Re: [Twisted-Python] Twisted Performance

2009-10-14 Thread Steve Steiner (listsin)
On Oct 14, 2009, at 4:55 AM, Laurens Van Houtven wrote: > Personally I'm a big fan of this series of blog posts: > http://krondo.com/blog/?page_id=1327 Very nice, thanks for sharing! S ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-14 Thread Steve Steiner (listsin)
On Oct 14, 2009, at 2:07 AM, Glyph Lefkowitz wrote: On Tue, Oct 13, 2009 at 8:02 PM, Steve Steiner (listsin) > wrote: I've been hunting down a problem that I've finally found the cause of and I'd like to know what's the Twisted way to catch this "error within the co

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-14 Thread Steve Steiner (listsin)
On Oct 14, 2009, at 3:22 AM, Andrew Bennetts wrote: > Glyph Lefkowitz wrote: > [...] >> I'm answering a question you didn't ask, about logged errors, >> because I >> think it's the one you meant to ask. The answer to the question >> you are >> actually asking here, i.e. "how do I handl

Re: [Twisted-Python] Twisted Performance

2009-10-13 Thread Steve Steiner (listsin)
On Oct 13, 2009, at 10:44 PM, Daniel Griffin wrote: Hi, I am new to twisted and have been having trouble finding out information about twisted's performance. I have a fairly simple setup where I need to open a bunch of TCP connections that last for varying amounts of time but dont do muc

[Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-13 Thread Steve Steiner (listsin)
I've been hunting down a problem that I've finally found the cause of and I'd like to know what's the Twisted way to catch this "error within the code handling the error" type of error. Basically, in one branch of the errBack, there was a typo. A simple typo that caused an unhandled NameEr

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 23

2009-10-13 Thread Steve Steiner (listsin)
On Oct 13, 2009, at 10:32 AM, Dirk Moors wrote: > Hello Reza, > > I tried the solution you provided and I have to say, that changed a > lot! > You gave me a better understanding of how things work with Twisted, > and I really appreciate your response! Can you show the new code and benchmark

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

2009-10-11 Thread Steve Steiner (listsin)
>> >> I'm having to do the pydoctor vs. Sphinx vs. EpyDoc research >> anyway...I'll post it somewhere public and send a link/message to >> the list. > > This was raised in July (in a thread you posted to ;). > > http://twistedmatrix.com/pipermail/twisted-python/2009-July/ > 020102.html I knew

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

2009-10-11 Thread listsin
On Oct 10, 2009, at 9:07 PM, Glyph Lefkowitz wrote: Much of the other code I'm using follows PEP-8 naming_conventions for methods and such whereas Twisted follows the Twisted Coding Standard which is a more javaCamelCase style convention. For what it's worth, the Twisted coding standard pr

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

2009-10-10 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. > >

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

2009-10-10 Thread Steve Steiner (listsin)
On Oct 10, 2009, at 7:34 AM, Reza Lotun wrote: >> I'm not quite sure what you mean. Are you talking about web.client or > web.server? Web client. I was having trouble with a particular URL which happened to be a download URL and wanted to see what the request and response objects looked lik

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

2009-10-10 Thread Steve Steiner (listsin)
On Oct 10, 2009, at 3:18 AM, Glyph Lefkowitz wrote: On Sat, Oct 10, 2009 at 2:22 AM, Steve Steiner (listsin) > wrote: Just realized that that was off-twistedmatrix, same doc at: http://twistedmatrix.com/documents/8.2.0/api/twisted.web.http.Request.html so it's not some

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

2009-10-09 Thread Steve Steiner (listsin)
On Oct 10, 2009, at 1:34 AM, Steve Steiner (listsin) wrote: > Along the way, I ran into: > > http://python.net/crew/mwh/apidocs/twisted.web.http.Request.html Just realized that that was off-twistedmatrix, same doc at: http://twistedmatrix.com/documents/

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

2009-10-09 Thread listsin
On Oct 9, 2009, at 5:53 AM, Reza Lotun wrote: >> I haven't found any way to dump the actual headers from within >> Twisted > > The getPage function in twisted.web is suited for simple calls but > won't return returns. What you have to do is create your own slightly > modified version of getPage

Re: [Twisted-Python] Phasing out old-style classes

2009-10-08 Thread Steve Steiner (listsin)
On Oct 8, 2009, at 9:03 PM, Mark Visser wrote: > >> For Python 3.x, oldstyle classes don't exist, so that'll happen >> automatically during the conversion. >> > Aha! Let me rephrase that, then: > > Is there a project underway to port Twisted to Python 3.x? Yes, it's called Twisted. S ___

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

2009-10-08 Thread Steve Steiner (listsin)
I'm attempting to get some web pages using the following code which I did not write. While it seems to work (except for this, so far) I have no idea if this is a reasonable way to do this (get simple web pages) at all: def getPage(url, contextFactory=None, *args, **kwargs): """ Do

Re: [Twisted-Python] Lots and lots and lots and lots... of deferreds

2009-10-06 Thread Steve Steiner (listsin)
On Oct 6, 2009, at 11:25 PM, Andrew Bennetts wrote: > Steve Steiner (listsin) wrote: > [...] >> I expect the usual flurry of "you must post your exact code or we >> can't help you at all, moron" posts, but... > > I'll try to restrain myself ;)

Re: [Twisted-Python] Lots and lots and lots and lots... of deferreds

2009-10-06 Thread Steve Steiner (listsin)
On Oct 6, 2009, at 10:57 PM, Glyph Lefkowitz wrote: However, you can experiment with it pretty easily using DeferredSemaphore: http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.defer.DeferredSemaphore.html Cool, I didn't know about that, I'll give it a look. Thanks! If your app

Re: [Twisted-Python] Lots and lots and lots and lots... of deferreds

2009-10-06 Thread Steve Steiner (listsin)
On Oct 6, 2009, at 11:00 PM, Matt Perry wrote: > One thing of note is that you say you have concurrency issues > handled -- but with asynchronous I/O, there are no concurrency > issues, since there's no concurrency (at least, not at application > level). This is confusing at first but it's

[Twisted-Python] Lots and lots and lots and lots... of deferreds

2009-10-06 Thread Steve Steiner (listsin)
So, I have a situation... I have an application whose basic function is, in simplified form: def main(): get_web_page(main_page_from_params) def get_web_page(page_name): set up a page getter deferred, one of the call

Re: [Twisted-Python] Use of 'twistd' utility with command-line arguments

2009-10-02 Thread Steve Steiner (listsin)
On Oct 2, 2009, at 12:14 PM, Valeriy Pogrebitskiy wrote: I suggest that Twisted dev. team looks into implementing this... Since we're telling other people how to spend their time...I suggest that you supply a patch. Thanks, S ___ Twisted-Pytho

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-09-29 Thread Steve Steiner (listsin)
> Hmm, sorry to question, but are you sure? You're right, different error. Sorry for not replying earlier -- just found this when Googling for 10.6 build instructions as I'm having a devil of a time building from SVN on 10.6 with Python 2.6.1. S ___

Re: [Twisted-Python] I found an interisting comment about Twisted vs. Erlang

2009-09-29 Thread Steve Steiner (listsin)
On Sep 29, 2009, at 2:16 PM, Alec Matusis wrote: > I have been a long time Twisted user, and I do not know Erlang. > I run into this interesting comment in engineering notes on Facebook > Chat > scalability: > > http://www.facebook.com/note.php?note_id=51412338919&comments > > “Leif K-Brooks >

Re: [Twisted-Python] Boston Twisted Sprint

2009-09-20 Thread Steve Steiner (listsin)
On Sep 20, 2009, at 10:09 PM, Jessica McKellar wrote: > Let's try this again: > > The proposal was for a sprint in Boston from September 28-October 2. > That starts a week from today. I'm sorry, maybe I missed something. The last message I have on this list, about this event, is from July 2

Re: [Twisted-Python] Twisted FTP server fails on PASV

2009-09-17 Thread Steve Steiner (listsin)
On Sep 17, 2009, at 7:29 PM, Slava Yanson wrote: It just doesn't want to go past PASV. Spent past 3 hours trying to figure this one out. Any help is appreciated. Since PASV mode goes to higher ports (> 1023), is it possible that a firewall's at the server getting in the way? http://slack

Re: [Twisted-Python] strange exception on Python 2.6 + Snow Leopard

2009-08-31 Thread Steve Steiner (listsin)
On Aug 31, 2009, at 3:36 PM, Phil Christensen wrote: > hey all, > > I just upgraded to Mac OS X 10.6 which includes Python 2.6.1. I'm > running the latest SVN HEAD of Twisted, but when I run twistd I get an > exception before it continues working (apparently) normally. Here's > what I'm seeing: >

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Steve Steiner (listsin)
On Aug 27, 2009, at 4:08 PM, Phil Christensen wrote: > On Aug 27, 2009, at 4:00 PM, Don Dwiggins wrote: >> I've been successfully and happily using Trial for a while now for >> development of a server. I have many tests at this point; during >> development of a new feature, I'd like to have a co

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Steve Steiner (listsin)
On Aug 27, 2009, at 4:00 PM, Don Dwiggins wrote: > I've been successfully and happily using Trial for a while now for > development of a server. I have many tests at this point; during > development of a new feature, I'd like to have a convenient way to > only > run the tests relevant to that

Re: [Twisted-Python] Questions about adding documentation

2009-08-03 Thread listsin
On Aug 2, 2009, at 12:41 AM, Glyph Lefkowitz wrote: On Sat, Aug 1, 2009 at 11:30 PM, Steve Steiner (listsin) > wrote: Where would we put an "inventory" project for it to be most useful? As JP mentioned earlier in this thread, some work has already taken place here: <http://t

Re: [Twisted-Python] Questions about adding documentation

2009-08-01 Thread Steve Steiner (listsin)
I get it, really. I do tend to use a lot of words to get things across. Sorry ;-). Duly noted ;-). Where would we put an "inventory" project for it to be most useful? As JP mentioned earlier in this thread, some work has already taken place here:

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread listsin
> I hope you can see why I want to hold on to our current toolchain > until we have someone around who has demonstrated a much deeper > commitment to documentation than anyone yet has. For example, > Steve, if you close 100 existing documentation tickets in the next > week, then make the e

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Steve Steiner (listsin)
On Jul 31, 2009, at 4:23 PM, Glyph Lefkowitz wrote: ... > I certainly wouldn't mind switching to a tool that has lots of fancy > features that lore lacks, but a hit-and-run approach where we just > switch tools in the hopes that it will make something better may > leave us in a worse situati

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Steve Steiner (listsin)
On Jul 31, 2009, at 10:25 PM, Itamar Shtull-Trauring wrote: > On Fri, 2009-07-31 at 15:37 -0400, Ying Li wrote: > >> version (currently 8.2.0) but this is meaningless to me. I think a >> big improvement would be putting in a small bit of context around the >> documentation , such as: >> >> * whe

Re: [Twisted-Python] Questions about adding documentation

2009-07-31 Thread Steve Steiner (listsin)
On Jul 31, 2009, at 3:37 PM, Ying Li wrote: > On Fri, Jul 31, 2009 at 10:19 AM, Santiago > Aguiar wrote: >> My suggestion would be that more than *adding* documentation, I would >> suggest to first search-and-destroy deprecated documentation. For me, >> one of the most frustrating parts of using

Re: [Twisted-Python] Questions about adding documentation

2009-07-30 Thread Steve Steiner (listsin)
On Jul 30, 2009, at 11:51 PM, Kevin Horn wrote: > Steve. > > Same thing happened to me. In my case it was corrected by a page > refresh. Yah, it's just a little scary when Twisted's own site does things like this. S ___ Twisted-Python mailing l

Re: [Twisted-Python] Questions about adding documentation

2009-07-30 Thread Steve Steiner (listsin)
On Jul 30, 2009, at 11:35 PM, Jean-Paul Calderone wrote: > Here are a few tickets in particular which I think it would be > worthwhile to > resolve: > >http://twistedmatrix.com/trac/ticket/1136 >http://twistedmatrix.com/trac/ticket/1627 >http://twistedmatrix.com/trac/ticket/3784 >

Re: [Twisted-Python] Possible Twisted sprint

2009-07-29 Thread Steve Steiner (listsin)
On Jul 29, 2009, at 8:18 PM, Michael Handverger wrote: > > - "Glyph Lefkowitz" wrote: >> For what it's worth, two people thus far (Jim Fulton and David >> Sturgis) have told me that it >> would be a lot easier to make this if it extended over a weekend, >> as it would be easier to >> atte

Re: [Twisted-Python] Possible Twisted sprint

2009-07-16 Thread Steve Steiner (listsin)
On Jul 16, 2009, at 11:20 PM, Steve Steiner (listsin) wrote: >> I've updated the wiki page. > > "the wiki page" at... Sorry, went back in the list and found it. I think it's better to give links like that in context. Why search when the writer

Re: [Twisted-Python] Possible Twisted sprint

2009-07-16 Thread Steve Steiner (listsin)
> I've updated the wiki page. "the wiki page" at... S ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Possible Twisted sprint

2009-07-16 Thread Steve Steiner (listsin)
> > I'll be there too. So far, we've got jml, exarkun, therve, glyph, > itamar: that's 5 people. Anyone I forgot to count? I'l be there if I can be of any use. S aka/ssteiner ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://tw

Re: [Twisted-Python] Possible Twisted sprint

2009-07-09 Thread Steve Steiner (listsin)
>>> As for the date, it should be no sooner than September 7. As a >>> starting point, let's say Sep 28-Oct 2. Works for me, as well. I'm just an hour North in New Hampshire so I'm pretty flexible around anyone else's schedule. S ___ Twisted-Pyth

Re: [Twisted-Python] AsyncQueue is still unavailable

2009-06-18 Thread Steve Steiner (listsin)
On Jun 18, 2009, at 3:46 PM, Kevin Horn wrote: I have no idea what happened to the site (archive.org shows no updates after Feb 2008), but older versions of both sAsync and AsynQueue are available on PyPI: http://pypi.python.org/pypi/sAsync/0.7 http://pypi.python.org/pypi/AsynQueue/0.3 Th