[Zope-Checkins] CVS: Zope/lib/python/AccessControl - DTML.py:1.11

Jim Fulton cvs-admin at zope.org
Fri Nov 28 11:43:52 EST 2003


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv3346/lib/python/AccessControl

Modified Files:
	DTML.py 
Log Message:
Removed the security-manager "validateValue" api, and, thus, the DTML
equivalent of the same. 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.

New-style class dictionaries are immutable. Changed some class-update
code to use setattr rather thah class-dictionary modifications.


=== Zope/lib/python/AccessControl/DTML.py 1.10 => 1.11 ===
--- Zope/lib/python/AccessControl/DTML.py:1.10	Wed Aug 14 17:29:07 2002
+++ Zope/lib/python/AccessControl/DTML.py	Fri Nov 28 11:43:51 2003
@@ -86,14 +86,6 @@
                 .validate(inst, parent, name, value)
                 )
 
-    def SecurityValidateValue(md, value):
-        """Convenience for common case of simple value validation.
-        """
-        return (SecurityManagement
-                .getSecurityManager()
-                .validateValue(value)
-                )
-
     def SecurityCheckPermission(md, permission, object):
         """Check whether the security context allows the given permission on
         the given object.
@@ -126,4 +118,6 @@
         if r > 0: return r-1
         return r
 
-DT_Util.TemplateDict.__dict__.update(DTMLSecurityAPI.__dict__)
+for name, v in DTMLSecurityAPI.__dict__.items():
+    if name[0] != '_':
+        setattr(DT_Util.TemplateDict, name, v)




More information about the Zope-Checkins mailing list