dabo Commit
Revision 4840
Date: 2008-12-15 20:01:16 -0800 (Mon, 15 Dec 2008)
Author: Cito
Trac: http://trac.dabodev.com/dabo/changeset/4840

Changed:
U   trunk/dabo/ui/uiwx/dFormMixin.py

Log:
Fixed #1185 (encoding problem with path of connection file).

Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2008-12-16 02:34:18 UTC (rev 4839)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2008-12-16 04:01:16 UTC (rev 4840)
@@ -702,6 +702,9 @@
                return self._cxnFile
 
        def _setCxnFile(self, val):
+               if isinstance(val, unicode):
+                       # file names should be byte strings
+                       val = val.encode(sys.getfilesystemencoding())
                self._cxnFile = val
 
 




_______________________________________________
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