[Zope] External management of roles and permissions

Dieter Maurer dieter at handshake.de
Fri Aug 22 21:26:17 EDT 2003


Dennis Allison wrote at 2003-8-19 13:33 -0700:
 > How do I programmatically set the Security settings programmatically?
 > 
 > Specifically, I have a collection of Zopes.  I need to verify that 
 > each supports certain special security roles and, if they are not 
 > present, create them.  Then I need to set the permissions for each 
 > security option/role programattically--the moral equivalent of going 
 > through and checking the boxes.  In a few instances I'll also need to 
 > test/and or set a proxy programmatically.   A quick browse of the API
 > and code didn't point me in the right direction.  How does one do this?

I suggest, you look at the modules in "AccessControl", especially
"Role" and "Permission". You should find everything in "AccessControl".


Dieter



More information about the Zope mailing list