dabo Commit
Revision 6573
Date: 2011-04-24 12:06:46 -0700 (Sun, 24 Apr 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6573

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

Log:
Changes in dTextBoxMixin class:
- improved interval data type support
- fix issue the flushValue() doesn't update source in some conditions.

Diff:
Modified: trunk/dabo/ui/uiwx/dTextBoxMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dTextBoxMixin.py 2011-04-18 20:04:02 UTC (rev 6572)
+++ trunk/dabo/ui/uiwx/dTextBoxMixin.py 2011-04-24 19:06:46 UTC (rev 6573)
@@ -389,7 +389,7 @@
                                strVal = self.NoneDisplay
                        else:
                                strVal = val
-                       _oldVal = self._oldVal = self.Value
+                       _oldVal = self.Value
 
                        # save the actual value for return by _getValue:
                        self._value = val
@@ -513,7 +513,8 @@
                                retVal = mx.DateTime.DateTimeFrom(ustr(strVal))
                        except ImportError:
                                raise ValueError(_("Can't import mx.DateTime"))
-               elif ustr(dataType) == "<type 'DateTimeDelta'>":
+               elif ustr(dataType) in ("<type 'datetime.timedelta'>", "<type 
'DateTimeDelta'>",
+                               "<type 'mx.DateTime.DateTimeDelta'>"):
                        # mx TimeDelta type. MySQLdb will use this for Time 
columns if mx is installed.
                        try:
                                import mx.DateTime
@@ -759,7 +760,7 @@
                                dabo.ui.callAfter(self._checkTextLength)
 
                        strVal = self.getStringValue(val)
-                       _oldVal = self._oldVal = self.Value
+                       _oldVal = self.Value
 
                        # save the actual value for return by _getValue:
                        self._value = 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