Re: [Zope3-Users] principalfolder breaks manager

2006-03-30 Thread Michael Howitz
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:
> 
> 

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


[Zope3-Users] principalfolder breaks manager

2006-03-30 Thread 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:



I'm able to successfully login as 'test' but I don't get permissions
as expected (-> grantAll). Instead this error message is shown:

"You are not authorized to perform this action. However, you may
login as a different user who is authorized."

Why doesn't grantAll work?

Regards,

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