[Zope3-Users] principalfolder breaks manager
    Michael Howitz 
    mh at gocept.com
       
    Fri Mar 31 01:54:11 EST 2006
    
    
  
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
    
    
More information about the Zope3-users
mailing list