[Zope-PAS] Re: nothing implements IMutableUserFolder

Tres Seaver tseaver at zope.com
Sun Feb 6 18:22:05 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

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.

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCBqacGqWXf00rNCgRAgWqAJ43BLa2wglOhLrJ/NzgwGpWfHIpsQCglRV5
X9B68uNs3Hyan+DSY1vvaUQ=
=OSBX
-----END PGP SIGNATURE-----



More information about the Zope-PAS mailing list