[Zope-Checkins] CVS: Zope/lib/python/AccessControl -
DTML.py:1.10.6.4
Brian Lloyd
brian at zope.com
Mon Jan 19 09:51:43 EST 2004
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv24605
Modified Files:
Tag: Zope-2_6-branch
DTML.py
Log Message:
fix builtins
=== Zope/lib/python/AccessControl/DTML.py 1.10.6.3 => 1.10.6.4 ===
--- Zope/lib/python/AccessControl/DTML.py:1.10.6.3 Thu Jan 15 18:20:15 2004
+++ Zope/lib/python/AccessControl/DTML.py Mon Jan 19 09:51:12 2004
@@ -128,7 +128,11 @@
DT_Util.TemplateDict.__dict__.update(DTMLSecurityAPI.__dict__)
+from types import FunctionType
for k, v in safe_builtins.items():
if k.startswith('_'):
continue
- DT_Util.TemplateDict.__dict__[k] = DT_Util.NotBindable(v)
+ if type(v) is FunctionType:
+ DT_Util.TemplateDict.__dict__[k] = DT_Util.NotBindable(v)
+ else:
+ DT_Util.TemplateDict.__dict__[k] = v
More information about the Zope-Checkins
mailing list