[Zope-PAS] Re: nothing implements IMutableUserFolder
Janko Hauser
jhauser at zscout.de
Mon Feb 7 08:09:38 EST 2005
Tres Seaver schrieb:
>
> Janko Hauser wrote:
> | Hi, I'm trying to incorporate a PAS acl_users during site setup. For
> | testing I use ZopeTestCase. This packages uses userFolderAddUser() to
> | generate specific users for the tests. Which does not function with PAS.
> |
> | Looking through the PAS code I realized, that nothing implements the
> | interfaces IMutableUserFolder, which defines the missing
> | method. Before I start to digg further I wanted to ask, if there are
> | reasons that PAS currently does not fullfill this interface?
> |
> | It looks a little bit difficult, as it needs to interact with several
> | plugins as it defines a user and gives this user a list of roles.
>
>
> You will need to add a plugin which can have users added (e.g., a
> ZODBUserManager) and activate it for IUserAdderPlugin. You also need to
> add a role assigner (e.g., ZODBRoleManager) and activate it for
> IRoleAssignerPlugin. Your code can then call '_doAddUser' to add the
> user object.
>
Yes, this I understood.
> You could submit a collector issue with patch to add the TTW-callable
> versions ('userFolderAddUser', 'userFolderEditUser', and
> 'userFolderDelUsers') if you have a use case for them.
>
The current usecase is, that ZopeTestCase as I use it does not work,
as the userFolderAddUser is used there to generate managers and so
on. But I will first look, if this can be solved there or in my test
code.
Thanks for the answer.
__Janko
More information about the Zope-PAS
mailing list