dabo Commit
Revision 6622
Date: 2011-06-12 03:57:17 -0700 (Sun, 12 Jun 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6622

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

Log:
Move AutoPopulatePK property reference out of the loop.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-06-11 17:23:53 UTC (rev 6621)
+++ trunk/dabo/db/dCursorMixin.py       2011-06-12 10:57:17 UTC (rev 6622)
@@ -1236,10 +1236,11 @@
                kf = self.KeyField
                if not isinstance(kf, tuple):
                        kf = (kf,)
+               autoPopulatePK = self.AutoPopulatePK
                for rec in ds:
                        self.new()
                        for col, val in rec.items():
-                               if self.AutoPopulatePK and (col in kf):
+                               if autoPopulatePK and (col in kf):
                                        continue
                                self.setFieldVal(col, 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