[Zope3-Users] Assigning roles to principals

Marco Mariani marco at sferacarta.com
Wed Jun 14 14:00:40 EDT 2006


How do I get the list of roles for the current principal?

I've tried

from zope.app.securitypolicy.principalrole import principalRoleManager

principalRoleManager.getRolesForPrincipal(self.request.principal)


and the list is empty

I'm currently defining principals in principals.zcml


tnx


More information about the Zope3-users mailing list