[Zope-CMF] setDefaultRole needed?

Tres Seaver tseaver@palladion.com
Mon, 13 Aug 2001 07:33:59 -0400


Chris Withers wrote:

> Hi,
> 
> In CMFCorePermissions.py there's a function called setDefaultRoles, and in it
> there's a comment:
> 
> # XXX This ought to be in AccessControl.SecurityInfo.
> 
> ...well, it is!
> 
> security = ClassSecurityInfo()
> 
> security.setPermissionDefault(permissionName,rolesList)
> 
> Am I missing something?

I don't know the source of the comment, but the two implemntations
are substantially different:

  - the one in AccessControl.SecurityInfo sets the permission-role
    bindings for the specific context (class, module, etc.);

  - the one in Products.CMFCore.CMFCorePermissions sets them
    "globally".

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com