[Zope3-Users] Assigning roles to principals

Frank Burkhardt fbo2 at gmx.net
Wed Jun 14 15:22:07 EDT 2006


Hi,

On Wed, Jun 14, 2006 at 09:35:47AM -0500, mats.nordgren wrote:
> Frank,
> 
> Try this:
> 
> role_map = IPrincipalRoleManager(context) <== For example root of site.
> role_map.assignRoleToPrincipal(u'mpgsite.Authenticated', principal_id)

Thank you - It's working :-)

Regards,

Frank


More information about the Zope3-users mailing list