[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/LocalEventService - LocalSubscribable.py:1.1.2.2

Gary Poster garyposter@earthlink.net
Fri, 17 May 2002 23:33:20 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/LocalEventService
In directory cvs.zope.org:/tmp/cvs-serv19452/lib/python/Zope/App/OFS/Services/LocalEventService

Modified Files:
      Tag: Zope-3x-branch
	LocalSubscribable.py 
Log Message:
Some tests of the changes in the global event service, and a small fix that one of them found.  Tests of the local event service later...



=== Zope3/lib/python/Zope/App/OFS/Services/LocalEventService/LocalSubscribable.py 1.1.2.1 => 1.1.2.2 ===
                 raise NotFoundError(subscriber, event_type, filter)
             subscriptions = clean_self._registry.getJustForType(ev_type)
+            if not subscriptions:
+                raise NotFoundError(subscriber, event_type, filter)
             try:
                 subscriptions.remove((subscriber, filter))
             except ValueError: