[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - ZCatalogIndexes.py:1.6
Casey Duncan
casey@zope.com
Fri, 14 Jun 2002 15:52:04 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv1930/Products/ZCatalog
Modified Files:
ZCatalogIndexes.py
Log Message:
Merge and register hotfix
=== Zope/lib/python/Products/ZCatalog/ZCatalogIndexes.py 1.5 => 1.6 ===
##############################################################################
-from Globals import DTMLFile
+from Globals import DTMLFile, InitializeClass
+from AccessControl.SecurityInfo import ClassSecurityInfo
import Globals
from OFS.Folder import Folder
from OFS.FindSupport import FindSupport
@@ -44,6 +45,9 @@
Historical.manage_options +
SimpleItem.manage_options
)
+
+ security = ClassSecurityInfo()
+ security.declareObjectProtected('Manage ZCatalogIndex Entries')
manage_main = DTMLFile('dtml/manageIndex',globals())
addIndexForm= DTMLFile('dtml/addIndexForm',globals())
@@ -61,7 +65,9 @@
'valid_roles', 'getobject'],
['Anonymous', 'Manager']
- )
+ ),
+
+ ('Manage ZCatalogIndex Entries', ('',)),
)
@@ -122,6 +128,8 @@
return o.__of__(self)
return getattr(self, name)
+
+InitializeClass(ZCatalogIndexes)
class OldCatalogWrapperObject(SimpleItem, Implicit):