comparison idavoll/idavoll.py @ 163:1701c0e2c707

Add --dbpass option for passing a password to the PostgreSQL backend. Author: edwinm Reviewer: ralphm Fixes #1
author Ralph Meijer <ralphm@ik.nu>
date Thu, 07 Sep 2006 11:13:46 +0000
parents 6fe78048baf9
children 40d931ed15b9
comparison
equal deleted inserted replaced
162:84cfe9fe38c5 163:1701c0e2c707
142 LogService().setServiceParent(sm) 142 LogService().setServiceParent(sm)
143 143
144 if config['backend'] == 'pgsql': 144 if config['backend'] == 'pgsql':
145 import pgsql_storage 145 import pgsql_storage
146 st = pgsql_storage.Storage(user=config['dbuser'], 146 st = pgsql_storage.Storage(user=config['dbuser'],
147 database=config['dbname']) 147 database=config['dbname'],
148 password=config['dbpass'])
148 elif config['backend'] == 'memory': 149 elif config['backend'] == 'memory':
149 import memory_storage 150 import memory_storage
150 st = memory_storage.Storage() 151 st = memory_storage.Storage()
151 152
152 import generic_backend as b 153 import generic_backend as b