[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/PropertyManager.py
Provided missing security declarations.
Stefan H. Holek
stefan at epy.co.at
Tue May 9 07:24:22 EDT 2006
Log message for revision 68062:
Provided missing security declarations.
Changed:
U Zope/trunk/lib/python/OFS/PropertyManager.py
-=-
Modified: Zope/trunk/lib/python/OFS/PropertyManager.py
===================================================================
--- Zope/trunk/lib/python/OFS/PropertyManager.py 2006-05-09 11:23:19 UTC (rev 68061)
+++ Zope/trunk/lib/python/OFS/PropertyManager.py 2006-05-09 11:24:22 UTC (rev 68062)
@@ -124,6 +124,7 @@
__propsets__=()
propertysheets=vps(DefaultPropertySheets)
+ security.declareProtected(access_contents_information, 'valid_property_id')
def valid_property_id(self, id):
if not id or id[:1]=='_' or (id[:3]=='aq_') \
or (' ' in id) or hasattr(aq_base(self), id) or escape(id) != id:
@@ -248,6 +249,7 @@
"""
return tuple(map(lambda dict: dict.copy(), self._propertyMap()))
+ security.declareProtected(access_contents_information, 'propertyLabel')
def propertyLabel(self, id):
"""Return a label for the given property id
"""
@@ -256,6 +258,7 @@
return p.get('label', id)
return id
+ security.declareProtected(access_contents_information, 'propdict')
def propdict(self):
dict={}
for p in self._properties:
More information about the Zope-Checkins
mailing list