[Zope3-checkins] CVS: Zope3/src/zope/app/services - configuration.py:1.25

Guido van Rossum guido@python.org
Wed, 30 Apr 2003 14:20:45 -0400


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv13672

Modified Files:
	configuration.py 
Log Message:
There was a reference to removeSecurityProxy() here, which doesn't
exist.  I presume trustedRemoveSecurityProxy() was meant.


=== Zope3/src/zope/app/services/configuration.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/services/configuration.py:1.24	Mon Apr 28 15:31:32 2003
+++ Zope3/src/zope/app/services/configuration.py	Wed Apr 30 14:20:45 2003
@@ -50,7 +50,7 @@
 from zope.proxy.context import ContextDescriptor
 from zope.proxy.introspection import removeAllProxies
 from zope.security.checker import InterfaceChecker
-from zope.security.proxy import Proxy
+from zope.security.proxy import Proxy, trustedRemoveSecurityProxy
 
 class ConfigurationStatusProperty(ContextDescriptor):
 
@@ -372,7 +372,7 @@
                 # There should be at most one security Proxy around an object.
                 # So, if we're going to add a new security proxy, we need to
                 # remove any existing one.
-                component = removeSecurityProxy(component)
+                component = trustedRemoveSecurityProxy(component)
 
             interface = wrapped_self.getInterface()