Mercurial > libervia-pubsub
diff idavoll/idavoll.py @ 52:0947b46c0968
Use ISubscriptionService support of PostgreSQL backend.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Wed, 03 Nov 2004 17:27:57 +0000 |
parents | 9685b7e291ef |
children | 445a61f872b6 |
line wrap: on
line diff
--- a/idavoll/idavoll.py Wed Nov 03 17:27:23 2004 +0000 +++ b/idavoll/idavoll.py Wed Nov 03 17:27:57 2004 +0000 @@ -106,15 +106,15 @@ bsc.setServiceParent(bs) component.IService(bsc).setServiceParent(sm) + bsc = b.SubscriptionService() + bsc.setServiceParent(bs) + component.IService(bsc).setServiceParent(sm) + if config['backend'] == 'memory': bsc = b.NodeCreationService() bsc.setServiceParent(bs) component.IService(bsc).setServiceParent(sm) - bsc = b.SubscriptionService() - bsc.setServiceParent(bs) - component.IService(bsc).setServiceParent(sm) - s = IdavollService() s.setServiceParent(sm)