[CMF-checkins] CVS: CMF/CMFActionIcons - permissions.py:1.2.2.1
Tres Seaver
tseaver at zope.com
Thu Apr 29 11:37:04 EDT 2004
Update of /cvs-repository/CMF/CMFActionIcons
In directory cvs.zope.org:/tmp/cvs-serv17086/CMFActionIcons
Modified Files:
Tag: tseaver-permissiongeddon-branch
permissions.py
Log Message:
- Enforced new "local permissions" pattern: each top-level CMF product
should have a 'permissions.py' module which imports / declares all
permissions used within the product; other modules within the product
should import from there. Likewise for 'exceptions.py'. CMFCorePermissions
delenda est!
=== CMF/CMFActionIcons/permissions.py 1.2 => 1.2.2.1 ===
--- CMF/CMFActionIcons/permissions.py:1.2 Wed Apr 28 03:44:18 2004
+++ CMF/CMFActionIcons/permissions.py Thu Apr 29 11:36:33 2004
@@ -14,7 +14,12 @@
$Id$
"""
+from AccessControl import ModuleSecurityInfo
+security = ModuleSecurityInfo('Products.CMFActionIcons.permissions')
+
+security.declarePublic('View')
from AccessControl.Permissions import view as View
-from Products.CMFCore.CMFCorePermissions import ManagePortal
+security.declarePublic('ManagePortal')
+from Products.CMFCore.permissions import ManagePortal
More information about the CMF-checkins
mailing list