dabo Commit
Revision 6517
Date: 2011-03-31 14:33:38 -0700 (Thu, 31 Mar 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6517

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

Log:
Newly-added records in cursors that had never been requeried didn't know their
data structure, even though DataStructure had been set explicitly. Fixed.


Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-03-31 18:26:02 UTC (rev 6516)
+++ trunk/dabo/db/dCursorMixin.py       2011-03-31 21:33:38 UTC (rev 6517)
@@ -2677,6 +2677,7 @@
                        except IndexError:
                                field_scale = None
                        val[idx] = (field_alias, field_type, field_pk, 
table_name, field_name, field_scale)
+                       self._types[field_name] = 
dabo.db.getPythonType(field_type)
                self._dataStructure = self.AuxCursor._dataStructure = tuple(val)
 
 



_______________________________________________
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