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


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to