kevin gill a écrit :
I have created a simple authenticator plug-in. It allows me to load my
users from my database. The plug-in only allows me to control the name of
a principal and validate their user name / password.
I need to tell Zope which roles different users have. I have the roles
stored on the database.
How do I develop/install a plug-in/adapter which will will be invoked for
the getRolesForPrincipal() method or be invoked as the
My authenticator just is setup to produce a
zope.app.authentication.principalfolder.Principal for the Principal
I suppose you have to use a PrincipalAnnotations utility, which can store
anything about principals which are not in the zodb (metadata, roles, etc.).
(look at zope.app.principalannotations)
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -