[Zope-Checkins] SVN: Zope/trunk/src/Products/ZCatalog/ZCatalog.py Order security declarations to be consistent with manage_options order

Hanno Schlichting hannosch at hannosch.eu
Sun Aug 1 09:05:48 EDT 2010


Log message for revision 115326:
  Order security declarations to be consistent with manage_options order
  

Changed:
  U   Zope/trunk/src/Products/ZCatalog/ZCatalog.py

-=-
Modified: Zope/trunk/src/Products/ZCatalog/ZCatalog.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/ZCatalog.py	2010-08-01 13:04:17 UTC (rev 115325)
+++ Zope/trunk/src/Products/ZCatalog/ZCatalog.py	2010-08-01 13:05:47 UTC (rev 115326)
@@ -90,6 +90,7 @@
     security.setPermissionDefault(manage_zcatalog_entries, ('Manager', ))
     security.setPermissionDefault(manage_zcatalog_indexes, ('Manager', ))
     security.setPermissionDefault(search_zcatalog, ('Anonymous', 'Manager'))
+    security.declareProtected(search_zcatalog, 'all_meta_types')
 
     meta_type = "ZCatalog"
     icon = 'misc_/ZCatalog/ZCatalog.gif'
@@ -109,19 +110,18 @@
         )
 
     security.declareProtected(manage_zcatalog_entries, 'manage_main')
-    security.declareProtected(search_zcatalog, 'all_meta_types')
 
     security.declareProtected(manage_zcatalog_entries, 'manage_catalogView')
     manage_catalogView = DTMLFile('dtml/catalogView', globals())
 
-    security.declareProtected(manage_zcatalog_entries, 'manage_catalogFind')
-    manage_catalogFind = DTMLFile('dtml/catalogFind', globals())
+    security.declareProtected(manage_zcatalog_entries, 'manage_catalogIndexes')
+    manage_catalogIndexes = DTMLFile('dtml/catalogIndexes', globals())
 
     security.declareProtected(manage_zcatalog_entries, 'manage_catalogSchema')
     manage_catalogSchema = DTMLFile('dtml/catalogSchema', globals())
 
-    security.declareProtected(manage_zcatalog_entries, 'manage_catalogIndexes')
-    manage_catalogIndexes = DTMLFile('dtml/catalogIndexes', globals())
+    security.declareProtected(manage_zcatalog_entries, 'manage_catalogFind')
+    manage_catalogFind = DTMLFile('dtml/catalogFind', globals())
 
     security.declareProtected(manage_zcatalog_entries,
                               'manage_catalogAdvanced')



More information about the Zope-Checkins mailing list