1import psycopg2.psycopg1 as driver 2import db 3 4class db_postgres(db.db_sql): 5 def connect(self, host, database, user, password): 6 return driver.connect("dbname=%s user=%s password=%s" % \ 7 (database, user, password)) 8