[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/LocalEventService - PathSubscriber.py:1.3
Jim Fulton
jim@zope.com
Tue, 2 Jul 2002 19:44:43 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/LocalEventService
In directory cvs.zope.org:/tmp/cvs-serv17483/lib/python/Zope/App/OFS/Services/LocalEventService
Modified Files:
PathSubscriber.py
Log Message:
Refactored service manager and service lookup get routines to be
consistent with the Zope 3 get style, using get and query
routines. Added some missing tests.
Moved the service-manager lookup hooks to
Zope.App.ComponentArchitecture.
=== Zope3/lib/python/Zope/App/OFS/Services/LocalEventService/PathSubscriber.py 1.2 => 1.3 ===
def __getSubscriber(self, wrapped_self):
- return getAdapter(wrapped_self, ITraverser).traverse(
- self.subscriber_path)
+ traverser = getAdapter(wrapped_self, ITraverser)
+ return traverser.traverse(self.subscriber_path)
def notify(wrapped_self, event):
removeAllProxies(wrapped_self).__getSubscriber(