Mercurial > libervia-pubsub
diff idavoll/idavoll.py @ 43:9685b7e291ef
Moved common stuff out of pgsql_backend.py to backend.py.
Implemented Storage class for memory backend.
Implemented item storage for pgsql Storage.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Mon, 01 Nov 2004 12:37:40 +0000 |
parents | 7d088c61e131 |
children | 0947b46c0968 |
line wrap: on
line diff
--- a/idavoll/idavoll.py Sun Oct 31 21:12:55 2004 +0000 +++ b/idavoll/idavoll.py Mon Nov 01 12:37:40 2004 +0000 @@ -90,11 +90,11 @@ if config['backend'] == 'pgsql': import pgsql_backend as b st = b.Storage(user=config['dbuser'], database=config['dbname']) - bs = b.BackendService(st) elif config['backend'] == 'memory': import memory_backend as b - bs = b.BackendService() + st = b.Storage() + bs = b.BackendService(st) component.IService(bs).setServiceParent(sm)