[CMF-checkins] CVS: CMF/CMFStaging - StagingTool.py:1.10
Florent Guillaume
fg@nuxeo.com
Sat, 3 Aug 2002 22:32:32 -0400
Update of /cvs-repository/CMF/CMFStaging
In directory cvs.zope.org:/tmp/cvs-serv17343/CMFStaging
Modified Files:
StagingTool.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/CMFStaging/StagingTool.py 1.9 => 1.10 ===
return None
- security.declareProtected(
- ManagePortal, 'manage_stagesForm' 'manage_editStages', 'getStagePaths')
-
+ security.declareProtected(ManagePortal, 'manage_stagesForm')
manage_stagesForm = PageTemplateFile('stagesForm', _wwwdir)
+
+ security.declareProtected(ManagePortal, 'getStagePaths')
def getStageItems(self):
lst = self._stages.items()
lst.sort()
return lst
+
+ security.declareProtected(ManagePortal, 'manage_editStages')
def manage_editStages(self, stages=(), RESPONSE=None):
"""Edits the stages."""
ss = {}