[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - RestrictedInterpreter.py:1.1.2.2
Guido van Rossum
guido@python.org
Thu, 18 Apr 2002 11:50:51 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv29511
Modified Files:
Tag: SecurityProxy-branch
RestrictedInterpreter.py
Log Message:
Pass self.checker to the other Proxy() call.
=== Zope3/lib/python/Zope/Security/RestrictedInterpreter.py 1.1.2.1 => 1.1.2.2 ===
if k not in self.nok_builtin_names:
self.builtins[k] = Proxy(v, self.checker)
- self.builtins['__import__'] = Proxy(self.ri_import, None)
+ self.builtins['__import__'] = Proxy(self.ri_import, self.checker)
def ri_import(self, name, globals, locals, fromlist):
# XXX handle fromlist