[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts - PythonScript.py:1.54

Tres Seaver tseaver at zope.com
Tue Jan 27 14:37:33 EST 2004


Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv29890/lib/python/Products/PythonScripts

Modified Files:
	PythonScript.py 
Log Message:
 - Merge bindings test, python script fix from 2.6 branch.


=== Zope/lib/python/Products/PythonScripts/PythonScript.py 1.53 => 1.54 ===
--- Zope/lib/python/Products/PythonScripts/PythonScript.py:1.53	Thu Jan 15 18:09:07 2004
+++ Zope/lib/python/Products/PythonScripts/PythonScript.py	Tue Jan 27 14:37:31 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