dabo Commit
Revision 7263
Date: 2012-09-29 15:54:01 -0700 (Sat, 29 Sep 2012)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/7263

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

Log:
Fix IsAdding property returns invalid status, since Record property doesn't 
hold any cursor metadata.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2012-09-28 22:02:08 UTC (rev 7262)
+++ trunk/dabo/db/dCursorMixin.py       2012-09-29 22:54:01 UTC (rev 7263)
@@ -2955,9 +2955,8 @@
                if self.RowCount <= 0:
                        return False
                try:
-                       getattr(self.Record, kons.CURSOR_TMPKEY_FIELD)
-                       return True
-               except dException.FieldNotFoundException:
+                       return (kons.CURSOR_TMPKEY_FIELD in 
self._records[self.RowNumber])
+               except IndexError:
                        return False
 
 



_______________________________________________
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