dabo Commit
Revision 4912
Date: 2009-01-07 04:11:11 -0800 (Wed, 07 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4912
Changed:
U trunk/dabo/ui/dDataControlMixinBase.py
Log:
Improved the code that changed in r4698 to distinguish between field validation
failures, which returned False, and cases where no validation was done, which
was returning None. This should fix the bug reported in issue #1193.
Diff:
Modified: trunk/dabo/ui/dDataControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dDataControlMixinBase.py 2009-01-06 23:09:46 UTC (rev
4911)
+++ trunk/dabo/ui/dDataControlMixinBase.py 2009-01-07 12:11:11 UTC (rev
4912)
@@ -50,7 +50,7 @@
def __onLostFocus(self, evt):
- if not self._lostFocus():
+ if self._lostFocus() is False:
evt.stop()
@@ -68,7 +68,7 @@
def _lostFocus(self):
- if not self.flushValue():
+ if self.flushValue() is False:
# Field validation failed
self._fldValidFailed = True
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]