Re: [Twisted-Python] twisted.cred interface deficiences

2013-04-02 Thread Laurens Van Houtven
Okay, cool. I definitely agree that IUsernamePassword.checkPassword is dumb and support deprecating it. On Monday, April 1, 2013, Shell wrote: > It actually might be the appropriate thing already. There's a couple > of possible reasons for renaming; one is that the password might not > be hashed

[Twisted-Python] Current callback best practices

2013-04-02 Thread Hynek Schlawack
Hi, I’ve asked this one already at the Twisted dinner (thanks again for it, it was probably my PyCon highlight) and got various answers from people sitting around me. I’m still indecisive so I’d like to gather even more opinions[1]. I already tried to ask on IRC but my time zone is just not ver

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Laurens Van Houtven
I use closures unless I use the same callback all the time. On Apr 2, 2013 1:04 PM, "Hynek Schlawack" wrote: > Hi, > > I’ve asked this one already at the Twisted dinner (thanks again for it, it > was probably my PyCon highlight) and got various answers from people > sitting around me. I’m still i

Re: [Twisted-Python] t.n.c.lookupAddress returns DNSNameError for hostnames w/ no A record

2013-04-02 Thread exarkun
On 06:48 am, by...@sinkhole.me wrote: >Hi all, > >I saw in previous posts that DNSNameError signifies an 'NXDOMAIN' >status >and DNSServerError signifies 'SERVFAIL'. However, I am getting a >DNSNameError from twisted.names.client.lookupAddress() when I query a >hostname that has no A records, but

Re: [Twisted-Python] twisted.cred interface deficiences

2013-04-02 Thread exarkun
On 08:51 am, _...@lvh.cc wrote: >Okay, cool. I definitely agree that IUsernamePassword.checkPassword is >dumb >and support deprecating it. Hey lvh, Please stop top-posting. :) Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Glyph
On Apr 2, 2013, at 3:52 AM, Hynek Schlawack wrote: > My question can be simplified to: Closures yes or no? "As appropriate". > They seem *really* handy since they allow to have some data present without > handing it through all the time. Eg in my cred checker, I can refer to the > user name

Re: [Twisted-Python] t.n.c.lookupAddress returns DNSNameError for hostnames w/ no A record

2013-04-02 Thread byr sa
On Tue, Apr 2, 2013 at 5:03 AM, wrote: > Hi byrsa, > > The behavior you're describing does sound wrong. However, I wasn't able > to reproduce it locally. Running your example, I get [] for > megaupload.com, not an error. Perhaps there is a tricky DNS server > involved somewhere that is changin

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Glyph
On Apr 2, 2013, at 4:11 AM, Laurens Van Houtven <_...@lvh.cc> wrote: > I use closures unless I use the same callback all the time. > Hey Laurens, On this list we prefer inline replies, not top-posting. Please stop top-posting. -glyph___ Twisted-Pyth

Re: [Twisted-Python] Twisted dinner pictures

2013-04-02 Thread Kevin Turner
I uploaded a bit of Spaceteam video from the sprints: http://www.youtube.com/watch?v=bQqQTA1dtHk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] twisted.cred interface deficiences

2013-04-02 Thread Glyph
On Apr 1, 2013, at 2:34 PM, Shell wrote: >>> I propose that IUsernamePassword should be split into at least two >>> interfaces: >>> >>> * IUsernamePassword, with only username and password, no methods, >>> which allows password to be used in any way >>> * Another interface, which only defines u