[Zope-CMF] Re: [dev] CMFActionIcons: permissions

Casey Duncan casey at zope.com
Tue Apr 27 16:01:44 EDT 2004

On Tue, 27 Apr 2004 11:26:27 -0400
Tres Seaver <tseaver at zope.com> wrote:

> Jens Vagelpohl wrote:
> >> Is there any good reason why CMFActionIcons has its own
> >permissions?>
> >> If not, I'd like to replace 'Manage Site' by 'Manage portal' and 
> >> import all permissions from Products.CMFCore.CMFCorePermissions.
> > 
> > 
> > +1
> > 
> > I doubt it was Tres' intention to have that package contain
> > different permissions.
> Permissions, like exceptions, events, and interfaces, are part of the 
> "public API" of a product, and deserve to be highlighted.
> I actually prefer to have each product have its own 'permissions.py' 
> module, which either imports more generic permissions from elsewhere 
> (AccessControl.Permissions, CMFCore.{CMFCoreP,p}ermissions), or else 
> declares any new ones needed.  This puts the naming of the permissions
> (but not the string values!) under control of the product author.
> While we are at it, why don't we move the ones in CMFCore to a 
> 'permissions.py' module, and leave behind the 'CMFCorePermissions.py' 
> module for backward compatibility.

+1, I hate that module name!


More information about the Zope-CMF mailing list