dabo Commit
Revision 4030
Date: 2008-04-05 17:24:53 -0700 (Sat, 05 Apr 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4030
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed an incorrect error message when str/unicode conversions are made to match
expected field type.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2008-04-04 17:36:03 UTC (rev 4029)
+++ trunk/dabo/db/dCursorMixin.py 2008-04-06 00:24:53 UTC (rev 4030)
@@ -934,6 +934,8 @@
dtStrings = ("<type 'DateTime'>", "<type
'Date'>", "<type 'datetime.datetime'>")
if str(fldType) in dtStrings and
isinstance(val, basestring):
ignore = True
+ elif isinstance(fldType, basestring) and
isinstance(val, basestring):
+ ignore = True
elif val is None or fldType is type(None):
# Any field type can potentially hold
None values (NULL). Ignore these.
ignore = True
_______________________________________________
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]