[Zope-Checkins] CVS: Zope/lib/python/AccessControl -
SecurityManager.py:1.14
Jim Fulton
cvs-admin at zope.org
Fri Nov 28 11:44:04 EST 2003
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv3501/lib/python/AccessControl
Modified Files:
SecurityManager.py
Log Message:
Removed the security-manager "validateValue" api. This was
necessitated by changes in the security policy that requires access to
source objects and attribute names to check acces to objects obtained
through attribute access.
=== Zope/lib/python/AccessControl/SecurityManager.py 1.13 => 1.14 ===
--- Zope/lib/python/AccessControl/SecurityManager.py:1.13 Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/SecurityManager.py Fri Nov 28 11:44:03 2003
@@ -47,7 +47,7 @@
"""
__allow_access_to_unprotected_subobjects__ = {
- 'validate': 1, 'validateValue': 1, 'checkPermission': 1,
+ 'validate': 1, 'checkPermission': 1,
'getUser': 1, 'calledByExecutable': 1
}
@@ -112,17 +112,6 @@
policy=self._policy
return policy.validate(accessed, container, name, value,
self._context)
-
- def validateValue(self, value, roles=_noroles):
- """Convenience for common case of simple value validation.
- """
- policy=self._policy
- if roles is _noroles:
- return policy.validate(None, None, None, value,
- self._context)
- else:
- return policy.validate(None, None, None, value,
- self._context, roles)
def checkPermission(self, permission, object):
"""Check whether the security context allows the given permission on
More information about the Zope-Checkins
mailing list