[Zope3-checkins] CVS: Zope3/src/zope/security - interpreter.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 21 01:02:49 EDT 2003


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv3254/security

Modified Files:
	interpreter.py 
Log Message:
Wrote tests for the interpreter service and the PythonInterpreter.

Fixed bug in secure interpreter in zope.security.

Removed some tests from test_talinterpreter, since it really tested Python
stuff, not TAL specific functionality.


=== Zope3/src/zope/security/interpreter.py 1.2 => 1.3 ===
--- Zope3/src/zope/security/interpreter.py:1.2	Mon Mar 10 11:48:48 2003
+++ Zope3/src/zope/security/interpreter.py	Thu Aug 21 00:02:18 2003
@@ -25,8 +25,9 @@
 
     def __init__(self):
         self.globals = {}
+        self.locals = {}
 
     def ri_exec(self, code):
         # XXX What is the type of code?
         self.globals['__builtins__'] = RestrictedBuiltins
-        exec code in self.globals
+        exec code in self.globals, self.locals




More information about the Zope3-Checkins mailing list