dabo Commit
Revision 5993
Date: 2010-09-12 11:08:26 -0700 (Sun, 12 Sep 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5993

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

Log:
The string representation of mx.DateTime types has either changed or differs 
from the way it is reprented when running under MySQLdb, because the self-test 
for dTextBox was throwing an error when the code tried to get the Value of a 
textbox set to an mx.DateTime.


Diff:
Modified: trunk/dabo/ui/uiwx/dTextBoxMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dTextBoxMixin.py 2010-09-12 17:56:09 UTC (rev 5992)
+++ trunk/dabo/ui/uiwx/dTextBoxMixin.py 2010-09-12 18:08:26 UTC (rev 5993)
@@ -450,7 +450,7 @@
                                
                        if retVal is None:
                                raise ValueError(_("String not in ISO 8601 
format."))
-               elif ustr(dataType) == "<type 'DateTime'>":
+               elif ustr(dataType) in ("<type 'DateTime'>", "<type 
'mx.DateTime.DateTime'>"):
                        # mx DateTime type. MySQLdb will use this if mx is 
installed.
                        try:
                                import mx.DateTime



_______________________________________________
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