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

Marco Giusti marco.giusti at gmail.com
Thu Jan 10 03:05:32 MST 2013


On Thu, Jan 10, 2013 at 11:00:06AM +0100, Marco Giusti wrote:
[cut]
> 
> Can't you use `Portal.login` interfaces paramenter? I think you have two
> different entry points for local and application accounts, so:
> 
> 	# login as local account
> 	portal.login('john', None, ILocalHomeFolder)
> 	# login as application account
> 	portal.login('john', None, IApplicationLogic)

here the credentials are not just a plain string, but an object that
provides ICredentials.




More information about the Twisted-Python mailing list