dabo Commit
Revision 7147
Date: 2012-04-26 09:51:51 -0700 (Thu, 26 Apr 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7147
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed syntax error in determining field type.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2012-04-25 19:57:02 UTC (rev 7146)
+++ trunk/dabo/db/dCursorMixin.py 2012-04-26 16:51:51 UTC (rev 7147)
@@ -232,10 +232,7 @@
"""
if field_val is None:
return field_val
- try:
- pythonType = self._types[field_name,None]
- except KeyError:
- pythonType = dabo.db.getDataType(type(field_val))
+ pythonType = self._types.get(field_name,
dabo.db.getDataType(type(field_val)))
if isinstance(field_val, pythonType):
# No conversion needed.
_______________________________________________
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]