[CMF-checkins] CVS: CMF/CMFWorkspaces - Workspace.py:1.6
Florent Guillaume
fg@nuxeo.com
Sat, 3 Aug 2002 22:31:32 -0400
Update of /cvs-repository/CMF/CMFWorkspaces
In directory cvs.zope.org:/tmp/cvs-serv17343/CMFWorkspaces
Modified Files:
Workspace.py
Log Message:
Pure stylistic and code formatting changes:
- Cleanup CMFCorePermissions imports.
- Always put security.declareProtected and friends on a single line
and just in front of the definition they're protecting, so that
automated coherency checking can be done using simple tools like
grep.
=== CMF/CMFWorkspaces/Workspace.py 1.5 => 1.6 ===
import Globals
from DateTime import DateTime
from AccessControl import ClassSecurityInfo, User, getSecurityManager
-from Products.CMFCore import CMFCorePermissions, PortalContent
+from Products.CMFCore import PortalContent
+from Products.CMFCore.CMFCorePermissions import View
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
from References import ReferenceCollection
@@ -69,13 +70,13 @@
({'id' : 'view',
'name' : 'Workspace',
'action' : 'workspace_view',
- 'permissions' : (CMFCorePermissions.View,),
+ 'permissions' : (View,),
'category' : 'object',
},
{'id' : 'metadata',
'name' : 'Metadata',
'action' : 'metadata_edit_form',
- 'permissions' : (CMFCorePermissions.View,),
+ 'permissions' : (View,),
'category' : 'object',
},
)