[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/component/localservice.py
Removed some unneeded removaAllProxies calls
Jim Fulton
jim at zope.com
Fri Aug 13 11:41:50 EDT 2004
Log message for revision 27108:
Removed some unneeded removaAllProxies calls
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/component/localservice.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/component/localservice.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/component/localservice.py 2004-08-13 15:39:11 UTC (rev 27107)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/component/localservice.py 2004-08-13 15:41:50 UTC (rev 27108)
@@ -20,7 +20,6 @@
from zope.component.exceptions import ComponentLookupError
from zope.component.service import serviceManager
from zope.component.interfaces import IServiceService
-from zope.proxy import removeAllProxies
from zope.app.site.interfaces import ISite, ISiteManager
from zope.testing.cleanup import addCleanUp
from zope.app.component.hooks import setSite
@@ -107,7 +106,7 @@
# This is not allowed to use any services to get its job done!
while not (context is None or
- ISiteManager.providedBy(removeAllProxies(context))):
+ ISiteManager.providedBy(context)):
context = getattr(context, '__parent__', None)
if context is None:
raise ComponentLookupError('Services')
More information about the Zope3-Checkins
mailing list