[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - event.py:1.5

Steve Alexander steve@cat-box.net
Mon, 3 Feb 2003 10:59:44 -0500


Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv23130/src/zope/app/interfaces/services

Modified Files:
	event.py 
Log Message:
Large event service reimplementation.


=== Zope3/src/zope/app/interfaces/services/event.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/interfaces/services/event.py:1.4	Mon Jan 27 13:16:17 2003
+++ Zope3/src/zope/app/interfaces/services/event.py	Mon Feb  3 10:59:12 2003
@@ -19,9 +19,47 @@
 
 from zope.interface import Interface
 from zope.app.interfaces.event import ISubscribable, ISubscriber, IPublisher
+from zope.app.interfaces.event import IEvent
 
 class ISubscriptionService(ISubscribable):
     """A Subscribable that implements the Subscription service."""
+    def unsubscribe(reference, event_type, filter=None):
+        '''See ISubscribable.unsubscribe
+
+        In addition, if the reference cannot be unsubscribed in this service,
+        pass this on to the next service.
+        '''
+
+    def unsubscribeAll(reference, event_type=IEvent, local_only=False):
+        '''See ISubscribable.unsubscribeAll
+
+        If local_only is True, only subscriptions to this event service
+        instance are removed.
+        Otherwise, the unsubscribeAll request is passed on to the next
+        service.
+        '''
+
+    def resubscribeByHubId(reference):
+        '''See ISubscribable.resubscribeByHubId
+
+        In addition, the request is passed on to the next service.
+        '''
+
+    def resubscribeByPath(reference):
+        '''See ISubscribable.resubscribeByPath
+
+        In addition, the request is passed on to the next service.
+        '''
+
+    def iterSubscriptions(reference, event_type=IEvent, local_only=False):
+        '''See ISubscribable.iterSubscriptions
+
+        If local_only is True, only subscriptions to this event service
+        instance are returned.
+        Otherwise, after subscriptions to this event service, subscriptions
+        to the next event service are returned.
+        '''
+
 
 class IEventChannel(ISubscribable, ISubscriber):
     """Interface for objects which distribute events to subscribers. """