dabo Commit
Revision 6272
Date: 2010-12-19 14:46:06 -0800 (Sun, 19 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6272

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

Log:
Fix for internal key field exception raised when row cloning.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2010-12-19 12:34:17 UTC (rev 6271)
+++ trunk/dabo/db/dCursorMixin.py       2010-12-19 22:46:06 UTC (rev 6272)
@@ -1208,6 +1208,10 @@
                                kf = (kf, )
                        for fld in kf:
                                rec[fld] = blank[fld]
+               try:
+                       del rec[kons.CURSOR_TMPKEY_FIELD]
+               except KeyError:
+                       pass
                self.appendDataSet((rec, ))
 
 



_______________________________________________
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