[Twisted-Python] How to hook onto or append functionality to a class (from another class)?

2010-09-08 Thread Einar S . Idsø
Hi, I am trying to make one class/service hook onto another class/service to add to its functionality without disturbing the original class/service. My situation is this: I currently have a class which at specific intervals queries one server per instance (via t.u.getProcessOutput()) for some bas

Re: [Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-08 Thread Glyph Lefkowitz
On Sep 7, 2010, at 12:16 PM, Laurens Van Houtven wrote: > Hi, > > As some of you probably know I'm trying to beat OAuth2.0 into submission. I'm > using twisted.cred to do it. The restriction that avatarIds need to be strs > is somewhat getting in my way, and I'm not sure if the correct way to

Re: [Twisted-Python] How to hook onto or append functionality to a class (from another class)?

2010-09-08 Thread Glyph Lefkowitz
Hi Einar, On Sep 8, 2010, at 6:19 AM, Einar S. Idsø wrote: > I am trying to make one class/service hook onto another class/service > to add to its functionality without disturbing the original > class/service. So... you are trying to write a computer program, is what you're saying? ;-) > My sit

Re: [Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-08 Thread Stephen Waterbury
A nomenclature distinction that might help this conversation: *authentication* verifies *identity* (via, e.g., userid/passwd, public key negotiation, etc.) and may issue a token (e.g., a cookie, Kerberos TGT, etc.). *authorization* determines what an authenticated identity (and its associated rol

Re: [Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-08 Thread Glyph Lefkowitz
On Sep 8, 2010, at 1:27 PM, Stephen Waterbury wrote: > Neither the OP nor Glyph use the term > "authorization" in either of their messages, but that concept > is clearly involved and is almost always useful for > clarification. The checker authenticates; the realm authorizes. Authorization proc

[Twisted-Python] txdev: utility for working on Twisted

2010-09-08 Thread Jonathan Lange
Hello everyone, I wrote a tool to help do Twisted development, especially with Bazaar. You can get the code with: $ bzr branch lp:~jml/+junk/twisteddev Basically, it's a few things to help with the interactions between branches and tickets. It might well work with Subversion, since it's mostly

Re: [Twisted-Python] twisted cred: why does avatarId need to be a str?

2010-09-08 Thread Laurens Van Houtven
Actually, I believe much of the confusion is cleared up. Apparently I misunderstood what a Realm does. Oops! The application in the original mail, which I will continue to talk about in this one, is a token endpoint. I've been told an explanation of what that is is in order. To start out: it is NO