[Zope-Checkins] CVS: Zope/lib/python/AccessControl - ZopeGuards.py:1.16.2.2

Tres Seaver tseaver at zope.com
Fri Jan 16 13:12:42 EST 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	ZopeGuards.py 
Log Message:


                                                                                  - Collector #1186:  some globals required to support certain in restricted
    code (e.g., list comprehensions in DTML expressions)
    were not propagated to all the right places.



=== Zope/lib/python/AccessControl/ZopeGuards.py 1.16.2.1 => 1.16.2.2 ===
--- Zope/lib/python/AccessControl/ZopeGuards.py:1.16.2.1	Thu Jan  8 18:33:43 2004
+++ Zope/lib/python/AccessControl/ZopeGuards.py	Fri Jan 16 13:12:10 2004
@@ -18,6 +18,7 @@
 import RestrictedPython
 from RestrictedPython.Guards import safe_builtins, full_write_guard
 from RestrictedPython.Utilities import utility_builtins
+from RestrictedPython.Eval import RestrictionCapableEval
 from SecurityManagement import getSecurityManager
 from SecurityInfo import secureModule
 from SimpleObjectPolicies import Containers, ContainerAssertions
@@ -400,3 +401,6 @@
                 }
 
 get_safe_globals = _safe_globals.copy
+
+RestrictionCapableEval.globals.update(_safe_globals)
+




More information about the Zope-Checkins mailing list