dabo Commit
Revision 3548
Date: 2007-10-22 11:39:45 -0700 (Mon, 22 Oct 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3548

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

Log:
Fixed a problem with type conversion when setting the Value to a tuple or a 
list.


Diff:
Modified: trunk/dabo/ui/uiwx/dTextBoxMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dTextBoxMixin.py 2007-10-22 17:24:01 UTC (rev 3547)
+++ trunk/dabo/ui/uiwx/dTextBoxMixin.py 2007-10-22 18:39:45 UTC (rev 3548)
@@ -450,6 +450,8 @@
                                        retVal = decimal.Decimal(strVal)
                        except:
                                raise ValueError, "Can't convert to decimal."
+               elif dataType in (tuple, list):
+                       retVal = eval(strVal)
                else:
                        # Other types can convert directly.
                        if dataType == str:




_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]

Reply via email to