[Zope-Checkins] CVS: Zope/lib/python/AccessControl -
Implementation.py:1.1.2.4
Brian Lloyd
brian at zope.com
Mon Jan 19 09:51:23 EST 2004
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv24402
Modified Files:
Tag: Zope-2_7-branch
Implementation.py
Log Message:
fix builtins
=== Zope/lib/python/AccessControl/Implementation.py 1.1.2.3 => 1.1.2.4 ===
--- Zope/lib/python/AccessControl/Implementation.py:1.1.2.3 Fri Jan 16 10:56:01 2004
+++ Zope/lib/python/AccessControl/Implementation.py Mon Jan 19 09:50:52 2004
@@ -91,9 +91,11 @@
from DocumentTemplate import DT_Util
from ZopeGuards import safe_builtins
+from types import FunctionType
for name, v in safe_builtins.items():
if name.startswith('__'):
continue
- v = DT_Util.NotBindable(v)
+ if type(v) is FunctionType:
+ v = DT_Util.NotBindable(v)
setattr(DT_Util.TemplateDict, name, v)
More information about the Zope-Checkins
mailing list