Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Laurens Van Houtven
On Thu, Jul 30, 2009 at 3:01 AM, Glyph Lefkowitz wrote: > Presumably the future plan is to have IPositioningProvider that receives > data from something other than NMEA, as well?  (Other GPS protocols, > whatever cell phones give you for triangulation, skyhook, etc.) Yep, that's the idea. > A min

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Glyph Lefkowitz
On Thu, Jul 30, 2009 at 8:26 AM, Laurens Van Houtven wrote: > On Thu, Jul 30, 2009 at 3:01 AM, Glyph Lefkowitz > wrote: > > I've attached a sketch > Extremely helpful, thank you. You're welcome. > To be honest, it > still looks kind of wonky that a LineReceiver (well, a subclass) > delegates

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Laurens Van Houtven
Oh, by the way: would you guys expect NMEASentences to be immutable objects? I suppose it makes sense, but maybe I've been thinking too much Haskell recently. After all, an NMEASentence is an alternative way of describing a past event (namely, something that a GPS told you). Changing it would be l

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Glyph Lefkowitz
On Thu, Jul 30, 2009 at 10:14 AM, Laurens Van Houtven wrote: > Oh, by the way: would you guys expect NMEASentences to be immutable > objects? > Yes, but by convention, not necessarily by enforcement. The really important thing is that the framework should not share or mutate NMEASentence objects

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Santiago Aguiar
Hello list! This is my first post, and I would like to join in the discussion :). Laurens Van Houtven wrote: > Okay, I'll do that as soon as people have reviewed the changes > suggested in your last mail, so that I know I got it right :-) > I agree with Glyph suggestions. NMEAAdapter should d

[Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Edward Z. Yang
Hello all, I have been prodded by the members of #twisted into rewriting the Deferred documentation. You can check out the plan at this ticket: http://twistedmatrix.com/trac/ticket/3943 Comments would be appreciated. Cheers, Edward P.S. If you reply on the mailing list, please CC me. ___

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Jamu Kakar
Hi Edward, On Thu, Jul 30, 2009 at 11:24 AM, Edward Z. Yang wrote: > I have been prodded by the members of #twisted into rewriting the > Deferred documentation.  You can check out the plan at this > ticket: > > http://twistedmatrix.com/trac/ticket/3943 > > Comments would be appreciated. Your outl

[Twisted-Python] getPage using ssl proxy

2009-07-30 Thread Konrads Smelkovs
Hello, I am writing some scraper scripts and need to pass them through an intercepting proxy. getPage does not support a proxy argument and this code I found on internet won't work with SSL proxy (stalls indefinitely): def getPage(url, contextFactory=None, *args, **kwargs): scheme, host, port

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Kevin Horn
This looks really great...looking forward to the results! Kevin Horn On Thu, Jul 30, 2009 at 2:03 PM, Jamu Kakar wrote: > Hi Edward, > > On Thu, Jul 30, 2009 at 11:24 AM, Edward Z. Yang wrote: > > I have been prodded by the members of #twisted into rewriting the > > Deferred documentation. You

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread ezyang
Excerpts from Jamu Kakar's message of Thu Jul 30 15:03:16 -0400 2009: > Your outline looks nice. Something that *really* helped me a lot > with Deferreds was seeing how they are modelled after standard > Python flow control behaviour. I guess that's what the first > section your proposing is abou

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Terry Jones
> Right. Everything you could do synchronously, you can do asynchronously > (and a bit more too). It just /looks/ really weird. At some point I realized that it helps to realize that code that looks synchronous really isn't at all. Probably all the programming that almost all of us will ever do

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Kevin Horn
On Thu, Jul 30, 2009 at 4:27 PM, Terry Jones wrote: > > Right. Everything you could do synchronously, you can do asynchronously > > (and a bit more too). It just /looks/ really weird. > > At some point I realized that it helps to realize that code that looks > synchronous really isn't at all. P

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Michael Hudson
2009/7/31 ezyang : > Excerpts from Jamu Kakar's message of Thu Jul 30 15:03:16 -0400 2009: >> Jono Lange gave a presentation recently (can't remember what it was >> called... maybe something about being an evil hacker or about how >> your code sucks and he hates you) where he presented step-by-step

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Nitro
Am 30.07.2009, 23:45 Uhr, schrieb Kevin Horn : > Thanks for this, Terry. I'd never thought of it that way, and it's > quite a > good point. I agree. I've come to think it's partially a fault of using normal text based editors. Those fit the programming models from 30 years ago well, but to

Re: [Twisted-Python] twisted.positioning: status report and request for comments/feedback

2009-07-30 Thread Laurens Van Houtven
Hi, and welcome to the discussion :-) On Thu, Jul 30, 2009 at 6:18 PM, Santiago Aguiar wrote: > NMEAAdapter should delegate to a IPositionReceiver (which should be a > Receiver, right? It's called Provider, maybe I'm missing something?), Yes, it's been called IPositioningReceiver and IPositioning

Re: [Twisted-Python] Deferred documentation rewrite

2009-07-30 Thread Dave Britton
- Original Message - From: "Michael Hudson" To: "Twisted general discussion" The accompanying paper is here: http://mumak.net/stuff/twisted-intro.html Thanks for this incredibly helpful link! -Dave ___ Twisted-Python mailing list Twisted-Pyt

[Twisted-Python] Questions about adding documentation

2009-07-30 Thread Jessica McKellar
Hi everyone, I would like to help Twisted by adding documentation or reviewing existing documentation. However, I don't see many (any?) unassigned tickets regarding documentation of specific items, and because I am quite new to Twisted this makes it hard for me to determine where you wish I would

Re: [Twisted-Python] Questions about adding documentation

2009-07-30 Thread Jean-Paul Calderone
On Thu, 30 Jul 2009 20:49:54 -0400, Jessica McKellar wrote: >Hi everyone, > >I would like to help Twisted by adding documentation or reviewing existing >documentation. However, I don't see many (any?) unassigned tickets regarding >documentation of specific items, and because I am quite new to Twi

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] Questions about adding documentation

2009-07-30 Thread Kevin Horn
Steve. Same thing happened to me. In my case it was corrected by a page refresh. Kevin Horn On Thu, Jul 30, 2009 at 10:45 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > > On Jul 30, 2009, at 11:35 PM, Jean-Paul Calderone wrote: > > Here are a few tickets in particular wh

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 Drew Smathers
On Thu, Jul 30, 2009 at 11:58 PM, Steve Steiner (listsin) wrote: > > 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. >

[Twisted-Python] Missing Interface?

2009-07-30 Thread Kevin Horn
the following classes: twisted.cred.credentials.CramMD5Credentials twisted.mail.imap4.PLAINCredentials twisted.mail.imap4.LOGINCredentials all seem to implement the same interface, yet there is no Interface defined for these objects. "But Kevin", you might be thinking, "They all implement twiste

Re: [Twisted-Python] Questions about adding documentation

2009-07-30 Thread Kevin Horn
On Thu, Jul 30, 2009 at 10:35 PM, Jean-Paul Calderone wrote: > On Thu, 30 Jul 2009 20:49:54 -0400, Jessica McKellar < > jessica.mckel...@gmail.com> wrote: > >Hi everyone, > > > >I would like to help Twisted by adding documentation or reviewing existing > >documentation. However, I don't see many (

Re: [Twisted-Python] Missing Interface?

2009-07-30 Thread Glyph Lefkowitz
On Fri, Jul 31, 2009 at 12:31 AM, Kevin Horn wrote: > the following classes: > > twisted.cred.credentials.CramMD5Credentials > twisted.mail.imap4.PLAINCredentials > twisted.mail.imap4.LOGINCredentials > > all seem to implement the same interface, yet there is no Interface defined > for these obje

Re: [Twisted-Python] Missing Interface?

2009-07-30 Thread Kevin Horn
On Fri, Jul 31, 2009 at 12:23 AM, Glyph Lefkowitz wrote: > On Fri, Jul 31, 2009 at 12:31 AM, Kevin Horn wrote: > >> the following classes: >> >> twisted.cred.credentials.CramMD5Credentials >> twisted.mail.imap4.PLAINCredentials >> twisted.mail.imap4.LOGINCredentials >> >> all seem to implement th