Am Donnerstag, den 30.03.2006, 17:58 +0200 schrieb Frank Burkhardt:
> Hi,
> 
> after adding a principal folder, the manager principal is no longer
> valid. That's bad, because I'm unable to remove the principal
> folder again (at least without pdb or 'zopectl debug').
>
> Is there a special reason for that behaviour or do i miss something
> (like: "you have to install utility XY before adding/registering
> the principal folder)?
> 
> I added a principal 'test' to the folder (prefix='mpgsite') and a line
> like this to zcml:
> 
> <grantAll principal="mpgsite.test" />

You can only do a grantAll for users defined via ZCML.

All other users you have to do
zope.app.securitypolicy.principalpermission \
     import principalPermissionManager

principalPermissionManager.grantAllPermissionsToPrincipal("mpgsite.test")

-- 
Mit freundlichen Grüßen

Michael Howitz

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to