dabo Commit
Revision 5696
Date: 2010-02-19 09:44:57 -0800 (Fri, 19 Feb 2010)
Author: Nate
Trac: http://trac.dabodev.com/changeset/5696

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

Log:
isChanged wasn't properly accounting for whether the current record was a new 
record.  We should be been checking to see whether the current records pk 
existed in as a key in the _newRecords hash table.  What we were doing was 
checking to see if the new record had changed.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2010-02-18 19:02:46 UTC (rev 5695)
+++ trunk/dabo/db/dCursorMixin.py       2010-02-19 17:44:57 UTC (rev 5696)
@@ -739,7 +739,7 @@
                        recKey = self.pkExpression(rec)
                        modrec = self._mementos.get(recKey, None)
                        if not modrec and includeNewUnchanged:
-                               modrec = self._newRecords.get(recKey, None)
+                               modrec = recKey in self._newRecords
                        return bool(modrec)
 
 



_______________________________________________
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