[api] update dbapi.connect() calls to match new prototype (user parameter is now named login)
--- a/hercule.py Thu Jul 16 13:53:33 2009 +0200
+++ b/hercule.py Fri Jul 17 08:17:39 2009 +0200
@@ -106,7 +106,7 @@
password = getpass('password: ')
if self.cnx is not None:
self.cnx.close()
- self.cnx = connect(user=user, password=password, host=host,
+ self.cnx = connect(login=user, password=password, host=host,
database=application)
self.schema = self.cnx.get_schema()
self.cursor = self.cnx.cursor()
--- a/misc/cwdesklets/rqlsensor/__init__.py Thu Jul 16 13:53:33 2009 +0200
+++ b/misc/cwdesklets/rqlsensor/__init__.py Fri Jul 17 08:17:39 2009 +0200
@@ -65,7 +65,7 @@
return self._v_cnx
except AttributeError:
appid, user, passwd = self._get_config("appid"), self._get_config("user"), self._get_config("passwd")
- cnx = connect(database=appid, user=user, password=passwd)
+ cnx = connect(database=appid, login=user, password=passwd)
self._v_cnx = cnx
return cnx
--- a/toolsutils.py Thu Jul 16 13:53:33 2009 +0200
+++ b/toolsutils.py Fri Jul 17 08:17:39 2009 +0200
@@ -289,5 +289,5 @@
password = optconfig.password
if not password:
password = getpass('password: ')
- return connect(user=user, password=password, host=optconfig.host, database=appid)
+ return connect(login=user, password=password, host=optconfig.host, database=appid)