[Zope] adding properties and getting roles in python

Jens Vagelpohl jens@zope.com
Tue, 2 Jul 2002 07:35:46 -0400


> context.acl_users.userFolderAddUser(username, pass, roles, 0)
> context.user_folders.manage_addFolder(username,'',0,0)
> context.user_folders.username.manage_addProperty('First Name', fname,
> 'string')

context.user_folders[username].manage_addProperty('First Name', fname, 
'string')

> context.acl_users.getUser('test').getRoles()
>
> and I get a list back. But the list contains "Authenticated" in addition
> to the actual roles of the user. I haven't logged in as this user, I am
> running the script as the Manager user (admin), so getRoles() shouldn't
> return "Authenticated" right? Does anybody know what is going on with
> and/or how to solve either of these problems?
>

this is normal and not a problem. any user with roles other than Anonymous 
will have "Authenticated" added to the list of roles. that does not mean 
the user is currently logged in.

jens