changeset 45:4447b3c5b857

Redefine backend classes as subclass of the implementations in backend.py. Removed PersistenceService.
author Ralph Meijer <ralphm@ik.nu>
date Wed, 03 Nov 2004 14:05:12 +0000
parents bc7438476a67
children 979e53b54267
files idavoll/pgsql_backend.py
diffstat 1 files changed, 3 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/idavoll/pgsql_backend.py	Wed Nov 03 14:03:41 2004 +0000
+++ b/idavoll/pgsql_backend.py	Wed Nov 03 14:05:12 2004 +0000
@@ -84,23 +84,8 @@
 class BackendService(backend.BackendService):
     """ PostgreSQL backend Service for a JEP-0060 pubsub service """
 
-class PublishService(service.Service):
-
-    __implements__ = backend.IPublishService,
-    
-    def publish(self, node_id, items, requestor):
-        return self.parent.publish(node_id, items, requestor)
+class PublishService(backend.PublishService):
+    pass
 
 class NotificationService(backend.NotificationService):
-
-    __implements__ = backend.INotificationService,
-
-    def get_notification_list(self, node_id, items):
-        return self.parent.get_notification_list(node_id, items)
-
-class PersistenceService(service.Service):
-
-    __implements__ = backend.IPersistenceService,
-
-    def store_items(self, node_id, items, publisher):
-        return self.parent.store_items(node_id, items, publisher)
+    pass