class Controller(pb.Root):
def service_setup(self):
- self.connection_type = "pyPgSQL.PgSQL"
+ self.connection_type = "psycopg2"
self.connection_dict = dict(cp_reconnect=True,
host=config.get("db", "host"),
user=config.get("db", "user"),
Start up the connection to the database.
"""
if self.db is None:
- self.db = adbapi.ConnectionPool("pyPgSQL.PgSQL", cp_reconnect=True,
+ self.db = adbapi.ConnectionPool("psycopg2", cp_reconnect=True,
host=config.get("db", "host"),
user=config.get("db", "user"),
password=config.get("db", "passwd"),