dabo Commit
Revision 6121
Date: 2010-10-21 10:09:46 -0700 (Thu, 21 Oct 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6121
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Found another case where ustr(val) should be used instead of unicode(val).
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2010-10-19 21:23:39 UTC (rev 6120)
+++ trunk/dabo/db/dCursorMixin.py 2010-10-21 17:09:46 UTC (rev 6121)
@@ -958,10 +958,7 @@
if fldType != type(val):
convTypes = (str, unicode, int, float, long,
complex)
if isinstance(val, convTypes) and
isinstance(rec[fld], basestring):
- if isinstance(fldType, str):
- val = ustr(val)
- else:
- val = unicode(val)
+ val = ustr(val)
elif isinstance(rec[fld], int) and
isinstance(val, bool):
# convert bool to int (original field
val was bool, but UI
# changed to int.
_______________________________________________
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]