dabo Commit
Revision 5416
Date: 2009-09-24 11:15:54 -0700 (Thu, 24 Sep 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5416

Changed:
U   trunk/dabo/biz/dBizobj.py

Log:
Reverted r5339. See ticket #1264.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2009-09-24 04:29:02 UTC (rev 5415)
+++ trunk/dabo/biz/dBizobj.py   2009-09-24 18:15:54 UTC (rev 5416)
@@ -462,10 +462,11 @@
                """Cancel all changes made to the current dataset, including 
all children
                and all new, unmodified records.
                """
-               return self.cancel(ignoreNoRecords=ignoreNoRecords, 
allRows=True)
+               self.scanChangedRows(self.cancel, allCursors=False, 
includeNewUnchanged=True,
+                               ignoreNoRecords=ignoreNoRecords)
 
 
-       def cancel(self, ignoreNoRecords=None, allRows=False):
+       def cancel(self, ignoreNoRecords=None):
                """Cancel all changes to the current record and all children.
 
                Two hook methods will be called: beforeCancel() and 
afterCancel(). The
@@ -480,7 +481,7 @@
                        # normally not be a problem.
                        ignoreNoRecords = True
                # Tell the cursor and all children to cancel themselves:
-               self._CurrentCursor.cancel(ignoreNoRecords=ignoreNoRecords, 
allRows=allRows)
+               self._CurrentCursor.cancel(ignoreNoRecords=ignoreNoRecords)
                for child in self.__children:
                        child.cancelAll(ignoreNoRecords=ignoreNoRecords)
                self.afterCancel()




_______________________________________________
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