[Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Saúl Ibarra Corretgé
Hi all, I'm experiencing something weird while writing a simple SSH server, and I wonder if anyone did run into this before: On every snippet I see around regarding public key authentication, the signature is checked as follows: #if not credentials.signature: #return failure.

Re: [Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Paul Swartz
On Wed, Jan 19, 2011 at 6:55 PM, Saúl Ibarra Corretgé wrote: > Hi all, > > I'm experiencing something weird while writing a simple SSH server, > and I wonder if anyone did run into this before: > > On every snippet I see around regarding public key authentication, the > signature is checked as fol

Re: [Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Saúl Ibarra Corretgé
Hi Paul, Thanks for that quick response! On Thu, Jan 20, 2011 at 1:06 AM, Paul Swartz wrote: > On Wed, Jan 19, 2011 at 6:55 PM, Saúl Ibarra Corretgé > wrote: >> Hi all, >> >> I'm experiencing something weird while writing a simple SSH server, >> and I wonder if anyone did run into this before:

Re: [Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Glyph Lefkowitz
On Jan 19, 2011, at 8:10 PM, Saúl Ibarra Corretgé wrote: > I fixed it by doing the following: > >def _got_keys_error(self, error, credentials): >if not error.check(ValidPublicKey): >return failure.Failure(ConchError(error.getErrorMessage())) Are you sure that's what you w

[Twisted-Python] Refactoring Documentation

2011-01-19 Thread Tom Davis
I've been using (and threatening to work on) Twisted for a few years now. It seems like every time I get back into it, I need to dig up old code or Google queries just to get started. Yesterday, Jean-Paul introduced me to the trial-tutorial branch

Re: [Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Saúl Ibarra Corretgé
On Thu, Jan 20, 2011 at 6:18 AM, Glyph Lefkowitz wrote: > On Jan 19, 2011, at 8:10 PM, Saúl Ibarra Corretgé wrote: > > I fixed it by doing the following: > >    def _got_keys_error(self, error, credentials): >    if not error.check(ValidPublicKey): >            return failure.Failure(ConchErro

Re: [Twisted-Python] (conch) credentials.signature always None?

2011-01-19 Thread Glyph Lefkowitz
On Jan 20, 2011, at 1:56 AM, Saúl Ibarra Corretgé wrote: > In this case I could get here (the errback) for several reasons, > depending on the DB backend, for example. I guess I could trap and all > the cases but ValidPrivateKey, but in this case I know for sure I want > ValidPrivateKey to be ign

Re: [Twisted-Python] Refactoring Documentation

2011-01-19 Thread Kevin Horn
On Thu, Jan 20, 2011 at 12:10 AM, Tom Davis wrote: > I've been using (and threatening to work on) Twisted for a few years now. > It seems like every time I get back into it, I need to dig up old code or > Google queries just to get started. Yesterday, Jean-Paul introduced me to > the trial-tutori

Re: [Twisted-Python] Refactoring Documentation

2011-01-19 Thread Glyph Lefkowitz
Let me begin by saying that I'm _very_ excited about this prospect and I'm looking forward to the output of this project. So, some of what I'm about to say may sound like harsh criticism but please do not let it discourage you. I agree with pretty much everything you're saying about problems w