[Zope3-checkins] CVS: Zope3/src/zope/app/event -
globalservice.py:1.14 objectevent.py:1.11
Jim Fulton
jim at zope.com
Fri Mar 5 17:10:04 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/event
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/event
Modified Files:
globalservice.py objectevent.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/event/globalservice.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/event/globalservice.py:1.13 Tue Mar 2 13:50:59 2004
+++ Zope3/src/zope/app/event/globalservice.py Fri Mar 5 17:09:02 2004
@@ -198,7 +198,7 @@
def globalNotifyOrPublish(self, event):
- assert IEvent.isImplementedBy(event)
+ assert IEvent.providedBy(event)
subscriptionsForEvent = self._registry.getAllForObject(event)
for subscriptions in subscriptionsForEvent:
for subscriber, filter in subscriptions:
=== Zope3/src/zope/app/event/objectevent.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/event/objectevent.py:1.10 Tue Mar 2 13:50:59 2004
+++ Zope3/src/zope/app/event/objectevent.py Fri Mar 5 17:09:02 2004
@@ -79,7 +79,7 @@
implements(ISubscriber)
def notify(self, event):
- assert IObjectEvent.isImplementedBy(event)
+ assert IObjectEvent.providedBy(event)
adapters = querySubscriptionMultiAdapter((event.object, event),
ISubscriber, context=None)
for adapter in adapters:
More information about the Zope3-Checkins
mailing list