[dabo-users] python datatype error rev 7119

Author: John Fabiani

Posted: 2012-04-06 at 10:26:03

Starting at 7119 I'm getting an error from

dCursorMixin -> _correctFieldTypes

if isinstance(field_val, pythonType):

# No conversion needed.

return field_val

self._types[field_name] returns None.

Infact self._types shows that all fields types are None.

I'm not sure why this is true. But

dabo.db.getDataType(type(field_val))

returns the correct value.

But of course the issue is that self._types does not fail in the "try". I

believe this was setup to find the pythonType from a data structure. But I'm

using a standard bizobj

So something like

try:

pythonType = self._types[field_name,None]

Johnf

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/1766331.iHmtUPPiGL@linux-12

©2012 John Fabiani