dabo Commit
Revision 6937
Date: 2011-10-27 11:38:04 -0700 (Thu, 27 Oct 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6937
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Failure to reset self.exitScan to False results in all future scans exiting
immediately, so for instance calling getChangedRows() on a biz with 3
records and children would return all rows as having changes after the first
row with changes was found. I'll hand it to you that it made it fast! :)
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2011-10-27 14:33:36 UTC (rev 6936)
+++ trunk/dabo/biz/dBizobj.py 2011-10-27 18:38:04 UTC (rev 6937)
@@ -1521,11 +1521,12 @@
"""
def _isThisChanged():
self.exitScan = self._isChanged(True,
includeNewUnchanged, withChildren)
- return self.exitScan
+ self.scan(_isThisChanged, scanRequeryChildren=False)
+ ret = self.exitScan
+ self.exitScan = False
+ return ret
- return self.scan(_isThisChanged, scanRequeryChildren=False)
-
def isChanged(self, includeNewUnchanged=None, withChildren=True):
"""
Return True if data has changed in this bizobj and any children.
_______________________________________________
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]