[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - Service.py:1.1.6.7
Paul Everitt
paul@zope.com
Thu, 28 Feb 2002 18:23:56 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv4094
Modified Files:
Tag: Zope-3x-branch
Service.py
Log Message:
Fixed bug in getService. It didn't check for no service manager in
service manager container properly.
=== Zope3/lib/python/Zope/ComponentArchitecture/Service.py 1.1.6.6 => 1.1.6.7 ===
while object is not None:
if IServiceManagerContainer.isImplementedBy(object):
- sm = object.getServiceManager()
- if sm:
+ sm = object.getServiceManager(None)
+ if sm is not None:
return sm.getService(object, name)
object = getinnercontext(object)
return serviceManager.getService(object, name)