Mercurial > libervia-pubsub
comparison idavoll/memory_backend.py @ 46:979e53b54267
Redefined several classes as subclasses of the implementations in backend.py.
Removed PersistenceService.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Wed, 03 Nov 2004 14:06:08 +0000 |
parents | 9685b7e291ef |
children | 64f0986d8b35 |
comparison
equal
deleted
inserted
replaced
45:4447b3c5b857 | 46:979e53b54267 |
---|---|
133 __implements__ = backend.INodeCreationService, | 133 __implements__ = backend.INodeCreationService, |
134 | 134 |
135 def create_node(self, node_id, requestor): | 135 def create_node(self, node_id, requestor): |
136 return self.parent.create_node(node_id, requestor) | 136 return self.parent.create_node(node_id, requestor) |
137 | 137 |
138 class PublishService(service.Service): | 138 class PublishService(backend.PublishService): |
139 pass | |
139 | 140 |
140 __implements__ = backend.IPublishService, | |
141 | |
142 def publish(self, node_id, items, requestor): | |
143 return self.parent.publish(node_id, items, requestor) | |
144 | |
145 class NotificationService(backend.NotificationService): | 141 class NotificationService(backend.NotificationService): |
146 | 142 pass |
147 __implements__ = backend.INotificationService, | |
148 | |
149 def get_notification_list(self, node_id, items): | |
150 return self.parent.get_notification_list(node_id, items) | |
151 | 143 |
152 class SubscriptionService(service.Service): | 144 class SubscriptionService(service.Service): |
153 | 145 |
154 __implements__ = backend.ISubscriptionService, | 146 __implements__ = backend.ISubscriptionService, |
155 | 147 |
156 def subscribe(self, node_id, subscriber, requestor): | 148 def subscribe(self, node_id, subscriber, requestor): |
157 return self.parent.subscribe(node_id, subscriber, requestor) | 149 return self.parent.subscribe(node_id, subscriber, requestor) |
158 | 150 |
159 def unsubscribe(self, node_id, subscriber, requestor): | 151 def unsubscribe(self, node_id, subscriber, requestor): |
160 return self.parent.unsubscribe(node_id, subscriber, requestor) | 152 return self.parent.unsubscribe(node_id, subscriber, requestor) |
161 | |
162 class PersistenceService(service.Service): | |
163 | |
164 __implements__ = backend.IPersistenceService, | |
165 | |
166 def store_items(self, node_id, items, publisher): | |
167 return self.parent.store_items(node_id, items, publisher) | |
168 |