dabo Commit
Revision 7031
Date: 2011-12-19 12:37:53 -0800 (Mon, 19 Dec 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7031

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

Log:
Fixed how Decimal, datetime, and some other values were represented when 
copying.

Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-12-19 11:30:34 UTC (rev 7030)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-12-19 20:37:53 UTC (rev 7031)
@@ -3334,7 +3334,7 @@
                                        escval = escval.replace(strSep, "\\%s" 
% strSep)
                                return "%s%s%s" % (strSep, escval, strSep)
                        else:
-                               ret = val.__repr__()
+                               ret = str(val)
                                if isinstance(val, (Decimal, float)):
                                        # We need to convert decimal point 
accordingly to the locale.
                                        ret = ret.replace(".", decimalPoint)



_______________________________________________
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