[Zope-Checkins] CVS: Zope/lib/python/OFS - FindSupport.py:1.33
Tres Seaver
tseaver at zope.com
Thu Jan 15 17:49:16 EST 2004
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv20789
Modified Files:
FindSupport.py
Log Message:
- Add security assertions for FindSupport (merge from 2.6 / 2.7 audit).
=== Zope/lib/python/OFS/FindSupport.py 1.32 => 1.33 ===
--- Zope/lib/python/OFS/FindSupport.py:1.32 Thu Aug 28 04:25:31 2003
+++ Zope/lib/python/OFS/FindSupport.py Thu Jan 15 17:49:16 2004
@@ -22,6 +22,7 @@
from DateTime import DateTime
from string import translate
from AccessControl.DTML import RestrictedDTML
+from AccessControl import ClassSecurityInfo
class FindSupport(ExtensionClass.Base):
"""Find support for Zope Folders"""
@@ -48,6 +49,9 @@
'help':('OFSP','Find.stx')},
)
+ security = ClassSecurityInfo()
+
+ security.declareProtected('View management screens', 'ZopeFind')
def ZopeFind(self, obj, obj_ids=None, obj_metatypes=None,
obj_searchterm=None, obj_expr=None,
obj_mtime=None, obj_mspec=None,
@@ -148,9 +152,10 @@
-
+ security.declareProtected('View management screens', 'PrincipiaFind')
PrincipiaFind=ZopeFind
+ security.declareProtected('View management screens', 'ZopeFindAndApply')
def ZopeFindAndApply(self, obj, obj_ids=None, obj_metatypes=None,
obj_searchterm=None, obj_expr=None,
obj_mtime=None, obj_mspec=None,
@@ -296,7 +301,7 @@
return 1
-Globals.default__class_init__(FindSupport)
+Globals.InitializeClass(FindSupport)
# Helper functions
More information about the Zope-Checkins
mailing list