dabo Commit
Revision 6515
Date: 2011-03-31 11:25:22 -0700 (Thu, 31 Mar 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6515

Changed:
U   trunk/dabo/db/dCursorMixin.py

Log:
Augmented the Data Type Mismatch error to show the table name and not just the
field name. 


Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-03-31 17:23:55 UTC (rev 6514)
+++ trunk/dabo/db/dCursorMixin.py       2011-03-31 18:25:22 UTC (rev 6515)
@@ -1052,7 +1052,8 @@
 
                                if not ignore:
                                        sft, stv = ustr(fldType), 
ustr(type(val))
-                                       msg = _("!!! Data Type Mismatch: 
field=%(fld)s. Expecting: %(sft)s; got: %(stv)s") % locals()
+                                       tbl = self.Table
+                                       msg = _("!!! Data Type Mismatch: 
table=%(tbl)s; field=%(fld)s. Expecting: %(sft)s; got: %(stv)s") % locals()
                                        dabo.log.error(msg)
 
                # If the new value is different from the current value, change 
it and also



_______________________________________________
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