Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Adi Roiban
On 9 January 2013 20:02, Glyph wrote: > On Jan 9, 2013, at 9:26 AM, Peter Westlake wrote: > > I am not an expert in Twisted, but from my understanding, the "string" > requirement is there to provide a plugable interface. So that you can > have generic credentials checkers, working with generic re

Re: [Twisted-Python] TypeError: Class advice impossible in Python3.

2013-01-09 Thread Barry Warsaw
On Jan 09, 2013, at 01:06 PM, ABHISHEK BHAT wrote: > File >"/home/abhat1/python3.3/lib/python3.3/site-packages/twisted/cred/credentials.py", >line 115, in DigestedCredentials > > >implements(IUsernameHashedPassword, IUsernameDigestHash) FWIW, you should use the @implementer class decorator in

Re: [Twisted-Python] TypeError: Class advice impossible in Python3.

2013-01-09 Thread Itamar Turner-Trauring
On Wed, Jan 9, 2013 at 3:06 PM, ABHISHEK BHAT wrote: > Hi > I am trying to use Twisted and PB but running into the below error in the > zope.interface module. > > I am running Python 3.3 and zope.interface version 4.0.3. I am running > this on a RedHat system. > > Does anybody know how to get arou

[Twisted-Python] TypeError: Class advice impossible in Python3.

2013-01-09 Thread ABHISHEK BHAT
Hi I am trying to use Twisted and PB but running into the below error in the zope.interface module. I am running Python 3.3 and zope.interface version 4.0.3. I am running this on a RedHat system. Does anybody know how to get around this problem? bash-3.2$ python pb_client.py Traceback (m

Re: [Twisted-Python] How to tell when SSH command has finished in Conch?

2013-01-09 Thread exarkun
On 06:19 pm, rodr...@crodrigues.org wrote: >Hi, > >I have a very similar question to the one that Vye Wilson >recently asked, "Subject: What is The Correct Way to Close a Twisted >Conch >SSH Connection?" > >I am using Twisted Conch to write a program that >ssh's into multiple machines and executes

[Twisted-Python] How to tell when SSH command has finished in Conch?

2013-01-09 Thread Craig Rodrigues
Hi, I have a very similar question to the one that Vye Wilson recently asked, "Subject: What is The Correct Way to Close a Twisted Conch SSH Connection?" I am using Twisted Conch to write a program that ssh's into multiple machines and executes a single command. I am basically trying to do the e

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Hynek Schlawack
Am 09.01.2013 um 14:04 schrieb Jan Urbański : >> http://twistedmatrix.com/documents/current/core/howto/cred.html says >> that the avatarId parameter to IRealm.requestAvatar must be a string, >> not even a Unicode string. I'm using LDAP for authentication, and the >> checker retrieves the full LDA

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Glyph
On Jan 9, 2013, at 9:26 AM, Peter Westlake wrote: >> I am not an expert in Twisted, but from my understanding, the "string" >> requirement is there to provide a plugable interface. So that you can >> have generic credentials checkers, working with generic realms. >> Having simple "strings" could

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Peter Westlake
On Wed, Jan 9, 2013, at 14:40, Adi Roiban wrote: > On 9 January 2013 15:04, Jan Urbański wrote: ... > > I have faced a similar problem myself and after reading the code I've > > resolved to wilfully disregarding the documentation and passing tuples > > around, accepting that if it breaks, I get to

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Ralph Meijer
On 2013-01-09 15:40, Adi Roiban wrote: > On 9 January 2013 15:04, Jan Urbański wrote: >> On 09/01/13 13:49, Peter Westlake wrote: >>> http://twistedmatrix.com/documents/current/core/howto/cred.html says >>> that the avatarId parameter to IRealm.requestAvatar must be a string, >>> not even a Unicod

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Adi Roiban
On 9 January 2013 15:04, Jan Urbański wrote: > On 09/01/13 13:49, Peter Westlake wrote: >> http://twistedmatrix.com/documents/current/core/howto/cred.html says >> that the avatarId parameter to IRealm.requestAvatar must be a string, >> not even a Unicode string. I'm using LDAP for authentication,

Re: [Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Jan Urbański
On 09/01/13 13:49, Peter Westlake wrote: > http://twistedmatrix.com/documents/current/core/howto/cred.html says > that the avatarId parameter to IRealm.requestAvatar must be a string, > not even a Unicode string. I'm using LDAP for authentication, and the > checker retrieves the full LDAP entry for

[Twisted-Python] Must avatarId always be a string?

2013-01-09 Thread Peter Westlake
http://twistedmatrix.com/documents/current/core/howto/cred.html says that the avatarId parameter to IRealm.requestAvatar must be a string, not even a Unicode string. I'm using LDAP for authentication, and the checker retrieves the full LDAP entry for the user as a side-effect of authentication. Unt