Index: src/interfaces/python/pgdb.py =================================================================== RCS file: /cvsroot/pgsql/src/interfaces/python/pgdb.py,v retrieving revision 1.10 diff -c -r1.10 pgdb.py *** src/interfaces/python/pgdb.py 19 Mar 2002 02:47:57 -0000 1.10 --- src/interfaces/python/pgdb.py 18 Apr 2002 02:10:20 -0000 *************** *** 337,343 **** ### module interface # connects to a database ! def connect(dsn = None, user = None, password = None, host = None, database = None): # first get params from DSN dbport = -1 dbhost = "" --- 337,343 ---- ### module interface # connects to a database ! def connect(dsn = None, user = None, password = None, xhost = None, database = None): # first get params from DSN dbport = -1 dbhost = "" *************** *** 364,372 **** dbpasswd = password if database != None: dbbase = database ! if host != None: try: ! params = string.split(host, ":") dbhost = params[0] dbport = int(params[1]) except: --- 364,372 ---- dbpasswd = password if database != None: dbbase = database ! if xhost != None: try: ! params = string.split(xhost, ":") dbhost = params[0] dbport = int(params[1]) except: