comparison idavoll/tap.py @ 218:479fc959af0e

Fix wrong use of configuration variables for pgsql db initialization. Author: ralphm. Fixes #15.
author Ralph Meijer <ralphm@ik.nu>
date Wed, 14 Oct 2009 16:13:24 +0000
parents f94c3eb38b75
children 698af5d720ad
comparison
equal deleted inserted replaced
217:f94c3eb38b75 218:479fc959af0e
46 if config['backend'] == 'pgsql': 46 if config['backend'] == 'pgsql':
47 from twisted.enterprise import adbapi 47 from twisted.enterprise import adbapi
48 from idavoll.pgsql_storage import Storage 48 from idavoll.pgsql_storage import Storage
49 dbpool = adbapi.ConnectionPool('pyPgSQL.PgSQL', 49 dbpool = adbapi.ConnectionPool('pyPgSQL.PgSQL',
50 user=config['dbuser'], 50 user=config['dbuser'],
51 password=config['dbuser'], 51 password=config['dbpass'],
52 database=config['dbname'], 52 database=config['dbname'],
53 host=config['dbpass'], 53 host=config['dbhost'],
54 port=config['dbport'], 54 port=config['dbport'],
55 cp_reconnect=True, 55 cp_reconnect=True,
56 client_encoding='utf-8', 56 client_encoding='utf-8',
57 ) 57 )
58 st = Storage(dbpool) 58 st = Storage(dbpool)