[Zope-dev] Assigning Permissions To Roles

Kevin Howe khowe@performance-net.com
Thu, 21 Sep 2000 16:01:38 -0300


I am having trouble getting Roles to work via my Python Product.

Creating a local role works fine:
 
  self._addRole('myRole')
    
But how do I tell the Role what permissions it has programmatically?

After looking in Role.py, I tried the following:

  self.manage_role('myRole', ['View management screens, View'])

but this kicks up an error. Am I calling this impoperly?

kh