comparison idavoll/pgsql_backend.py @ 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 9685b7e291ef
children 40ac06941edc
comparison
equal deleted inserted replaced
44:bc7438476a67 45:4447b3c5b857
82 node_id.encode('utf8'))) 82 node_id.encode('utf8')))
83 83
84 class BackendService(backend.BackendService): 84 class BackendService(backend.BackendService):
85 """ PostgreSQL backend Service for a JEP-0060 pubsub service """ 85 """ PostgreSQL backend Service for a JEP-0060 pubsub service """
86 86
87 class PublishService(service.Service): 87 class PublishService(backend.PublishService):
88 88 pass
89 __implements__ = backend.IPublishService,
90
91 def publish(self, node_id, items, requestor):
92 return self.parent.publish(node_id, items, requestor)
93 89
94 class NotificationService(backend.NotificationService): 90 class NotificationService(backend.NotificationService):
95 91 pass
96 __implements__ = backend.INotificationService,
97
98 def get_notification_list(self, node_id, items):
99 return self.parent.get_notification_list(node_id, items)
100
101 class PersistenceService(service.Service):
102
103 __implements__ = backend.IPersistenceService,
104
105 def store_items(self, node_id, items, publisher):
106 return self.parent.store_items(node_id, items, publisher)