dabo Commit
Revision 6311
Date: 2011-01-12 05:53:44 -0800 (Wed, 12 Jan 2011)
Author: Uwe_Grauer
Trac: http://trac.dabodev.com/changeset/6311

Changed:
U   trunk/dabo/db/dbFirebird.py

Log:
Changed host and database connection params back to unicode.
kinterbasdb does not like unicode for user and password.


Diff:
Modified: trunk/dabo/db/dbFirebird.py
===================================================================
--- trunk/dabo/db/dbFirebird.py 2011-01-11 13:23:28 UTC (rev 6310)
+++ trunk/dabo/db/dbFirebird.py 2011-01-12 13:53:44 UTC (rev 6311)
@@ -51,11 +51,11 @@
                port = connectInfo.Port
                if not port:
                        port = 3050
-               # kinterbasdb will barf with unicode strings:
-               host = str(connectInfo.Host)
+               # kinterbasdb will barf with unicode strings for user nad 
password:
+               host = ustr(connectInfo.Host)
                user = str(connectInfo.User)
                password = str(connectInfo.revealPW())
-               database = str(connectInfo.Database)
+               database = ustr(connectInfo.Database)
 
                self._connection = self.dbapi.connect(host=host, user=user,
                                password=password, database=database, **kwargs)



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to