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

Tres Seaver tseaver at zope.com
Thu Jan 15 18:20:46 EST 2004


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

Modified Files:
      Tag: Zope-2_6-branch
	DTML.py 
Log Message:


  - More on Collector #1169:

    o *All* safe_builtins need to be wrapped in NotBindable.

    o *Don't* try to wedge safe_builtins['__import__'] into the
      namespace.


=== Zope/lib/python/AccessControl/DTML.py 1.10.6.2 => 1.10.6.3 ===
--- Zope/lib/python/AccessControl/DTML.py:1.10.6.2	Mon Jan 12 16:38:45 2004
+++ Zope/lib/python/AccessControl/DTML.py	Thu Jan 15 18:20:15 2004
@@ -128,9 +128,7 @@
 
 DT_Util.TemplateDict.__dict__.update(DTMLSecurityAPI.__dict__)
 
-_NEED_WRAPPING = ('max', 'min')
-
 for k, v in safe_builtins.items():
-    if k in _NEED_WRAPPING:
-        v = DT_Util.NotBindable(v)
-    DT_Util.TemplateDict.__dict__[k] = v
+    if k.startswith('_'):
+        continue
+    DT_Util.TemplateDict.__dict__[k] = DT_Util.NotBindable(v)




More information about the Zope-Checkins mailing list