[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts -
PythonScript.py:1.46.2.8
Tres Seaver
tseaver at zope.com
Tue Jan 27 14:37:34 EST 2004
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv29908/lib/python/Products/PythonScripts
Modified Files:
Tag: Zope-2_7-branch
PythonScript.py
Log Message:
- Merge bindings test, python script fix from 2.6 branch.
=== Zope/lib/python/Products/PythonScripts/PythonScript.py 1.46.2.7 => 1.46.2.8 ===
--- Zope/lib/python/Products/PythonScripts/PythonScript.py:1.46.2.7 Thu Jan 15 14:43:29 2004
+++ Zope/lib/python/Products/PythonScripts/PythonScript.py Tue Jan 27 14:37:33 2004
@@ -315,17 +315,11 @@
PythonScriptTracebackSupplement, self, -1)
f = new.function(fcode, g, None, fadefs)
- # Execute the function in a new security context.
- security=getSecurityManager()
- security.addContext(self)
- try:
- result = f(*args, **kw)
- if keyset is not None:
- # Store the result in the cache.
- self.ZCacheable_set(result, keywords=keyset)
- return result
- finally:
- security.removeContext(self)
+ result = f(*args, **kw)
+ if keyset is not None:
+ # Store the result in the cache.
+ self.ZCacheable_set(result, keywords=keyset)
+ return result
def manage_haveProxy(self,r): return r in self._proxy_roles
More information about the Zope-Checkins
mailing list