Thread: [SQL-CVS] SQLObject/SQLObject DBConnection.py,1.21,1.22
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-21 07:40:55
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv21443/SQLObject Modified Files: DBConnection.py Log Message: Make password and host default (to '' and 'localhost' respectively) Index: DBConnection.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/DBConnection.py,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** DBConnection.py 19 Apr 2003 00:04:08 -0000 1.21 --- DBConnection.py 21 Apr 2003 07:40:51 -0000 1.22 *************** *** 341,345 **** class MySQLConnection(DBAPI): ! def __init__(self, host, db, user, passwd, **kw): assert MySQLdb, 'MySQLdb module cannot be found' self.host = host --- 341,345 ---- class MySQLConnection(DBAPI): ! def __init__(self, db, user, passwd='', host='localhost', **kw): assert MySQLdb, 'MySQLdb module cannot be found' self.host = host |