[CMF-checkins] CVS: CMF/CMFWiki - CMFWikiPage.py:1.26

Florent Guillaume fg@nuxeo.com
Sat, 3 Aug 2002 22:31:32 -0400


Update of /cvs-repository/CMF/CMFWiki
In directory cvs.zope.org:/tmp/cvs-serv17343/CMFWiki

Modified Files:
	CMFWikiPage.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/CMFWiki/CMFWikiPage.py 1.25 => 1.26 ===
 
         return r
 
-    security.declareProtected(CMFWikiPermissions.Edit,
-                              'history_copy_page_to_present')
+    security.declareProtected(CMFWikiPermissions.Edit, 'history_copy_page_to_present')
     def history_copy_page_to_present(self, keys=[]):
         """Create a new object copy with the contents of an historic copy."""
         self.manage_historyCopy(keys=keys)
         self.reindexObject()
 
-    security.declareProtected(CMFWikiPermissions.View,
-                              'history_compare_versions')
+    security.declareProtected(CMFWikiPermissions.View, 'history_compare_versions')
     def history_compare_versions(self, keys=[], REQUEST=None):
         """Do history comparisons.