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

Peter Westlake peter.westlake at pobox.com
Wed Jan 9 12:26:51 EST 2013


On Wed, Jan 9, 2013, at 14:40, Adi Roiban wrote:
> On 9 January 2013 15:04, Jan Urbański <wulczer at wulczer.org> 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 keep both pieces.
> 
> 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 also help with AvatarId serialization,
> in case you have the CredentialsChecker on one computer and the you
> will pass them over network/socket to a remote Realm.

Those are both good points! I'll leave it this way until there's
a more official way of doing it.

> I have also asked over IRC and I got the good to go answer for using
> anything as AvatarID.
> 
> As long as you are only using your custom credentials checkers and
> your custom realm, everything should be ok.
> 
> I am using Objects as AvatarID without any problems.

Thanks to all who replied.

Peter.
 
> Cheers,
> -- 
> Adi Roiban
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python



More information about the Twisted-Python mailing list