[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/ Removed some unneeded removaAllProxies calls

Jim Fulton jim at zope.com
Fri Aug 13 10:22:58 EDT 2004


Log message for revision 27094:
  Removed some unneeded removaAllProxies calls


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py	2004-08-13 14:22:29 UTC (rev 27093)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/site/service.py	2004-08-13 14:22:58 UTC (rev 27094)
@@ -30,7 +30,6 @@
 
 import zope.interface
 from zope.component.exceptions import ComponentLookupError
-from zope.proxy import removeAllProxies
 
 import zope.app.registration.interfaces
 from zope.app import zapi
@@ -248,7 +247,7 @@
 
     def findModule(self, name):
         # override to pass call up to next service manager
-        mod = super(ServiceManager, removeAllProxies(self)).findModule(name)
+        mod = super(ServiceManager, self).findModule(name)
         if mod is not None:
             return mod
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py	2004-08-13 14:22:29 UTC (rev 27093)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/utility/browser/__init__.py	2004-08-13 14:22:58 UTC (rev 27094)
@@ -21,7 +21,6 @@
 from zope.app.registration.interfaces import UnregisteredStatus
 from zope.app import zapi
 from zope.interface import providedBy
-from zope.proxy import removeAllProxies
 from zope.security.proxy import trustedRemoveSecurityProxy
 from zope.app.introspector import interfaceToName
 
@@ -42,7 +41,6 @@
 
 
 class Utilities(object):
-
     # self.context is the local utility service
 
     def update(self):
@@ -150,7 +148,7 @@
         return s
 
     def getConfigs(self):
-        utils = removeAllProxies(self.context)
+        utils = self.context
         L = []
         for registration in utils.registrations(localOnly=True):
             ifname = interfaceToName(self.context, registration.provided)



More information about the Zope3-Checkins mailing list