[Zope-Checkins] CVS: Zope/lib/python/AccessControl - DTML.py:1.13
Brian Lloyd
brian at zope.com
Mon Jan 19 09:49:59 EST 2004
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv24176
Modified Files:
DTML.py
Log Message:
fix builtins
=== Zope/lib/python/AccessControl/DTML.py 1.12 => 1.13 ===
--- Zope/lib/python/AccessControl/DTML.py:1.12 Thu Jan 15 18:09:03 2004
+++ Zope/lib/python/AccessControl/DTML.py Mon Jan 19 09:49:28 2004
@@ -98,8 +98,10 @@
if name[0] != '_':
setattr(DT_Util.TemplateDict, name, v)
+from types import FunctionType
for name, v in safe_builtins.items():
- v = DT_Util.NotBindable(v)
+ if type(v) is FunctionType:
+ v = DT_Util.NotBindable(v)
if name.startswith('__'):
continue
setattr(DT_Util.TemplateDict, name, v)
More information about the Zope-Checkins
mailing list