dabo Commit
Revision 6525
Date: 2011-04-02 09:00:09 -0700 (Sat, 02 Apr 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6525
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Fixed issue with dBizobj wrong cursor assignment for newly created grandchild
cursors.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2011-04-02 15:56:02 UTC (rev 6524)
+++ trunk/dabo/db/dCursorMixin.py 2011-04-02 16:00:09 UTC (rev 6525)
@@ -831,8 +831,10 @@
except (IndexError, KeyError):
# No records; default to string
pkVal = ""
-
- tmpPK = self._genTempPKVal(pkVal)
+ # To prevent situation where grandchildren from different branch
+ # are assigned to the same child, we need to use sqlManager
+ # for temporary key creation.
+ tmpPK = self.sqlManager._genTempPKVal(pkVal)
if isinstance(kf, tuple):
for key in kf:
rec[key] = tmpPK
_______________________________________________
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]