dabo Commit
Revision 6947
Date: 2011-10-28 05:33:53 -0700 (Fri, 28 Oct 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6947

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

Log:
Revert changes to prevent in advance row scanning on positive results.
After all, test results follows:
======================================================================
FAIL: test_Encoding (__main__.Test_dBizobj)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\SVN\dabodev\dabo\biz\test\test_dBizobj.py", line 106, in 
test_Encoding
    self.assertEqual(biz.Encoding, dabo.getEncoding())
AssertionError: u'utf-8' != 'cp1250'

----------------------------------------------------------------------
Ran 31 tests in 0.451s

FAILED (failures=1)

Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2011-10-28 00:56:41 UTC (rev 6946)
+++ trunk/dabo/biz/dBizobj.py   2011-10-28 12:33:53 UTC (rev 6947)
@@ -1544,12 +1544,11 @@
                """
                def _isThisChanged():
                        self.exitScan = self._isChanged(True, 
includeNewUnchanged, withChildren)
-               self.scan(_isThisChanged, scanRequeryChildren=False)
-               ret = self.exitScan
-               self.exitScan = False
-               return ret
+                       return self.exitScan
 
+               return self.scan(_isThisChanged, scanRequeryChildren=False) or 
False
 
+
        def isAnyChanged(self, includeNewUnchanged=None, withChildren=True):
                """
                Return True if at least one record in the current record set 



_______________________________________________
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