Changeset 5965
- Timestamp:
- 08/31/2010 06:01:52 AM (1 year ago)
- Files:
-
- trunk/dabo/ui/uiwx/dForm.py (modified) (3 diffs)
- trunk/dabo/ui/uiwx/dPemMixin.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dForm.py
r5958 r5965 56 56 # Holds the dataSource passed to the method 57 57 self.dataSourceParameter = None 58 # Flag to prevent infinite loops when doing field-level validation 59 self._fieldValidationControl = None 58 60 59 61 … … 775 777 can then respond to this. 776 778 """ 779 if self._fieldValidationControl: 780 # Prevent infinite loops 781 return 777 782 ds = ctrl.DataSource 778 783 df = ctrl.DataField … … 810 815 self.StatusText = _(u"Validation failed for %(df)s: %(err)s") % locals() 811 816 dabo.ui.callAfter(ctrl.setFocus) 817 self._fieldValidationControl = ctrl 818 819 820 def _controlGotFocus(self, ctrl): 821 if self._fieldValidationControl is ctrl: 822 # Clear it 823 self._fieldValidationControl = None 812 824 813 825 trunk/dabo/ui/uiwx/dPemMixin.py
r5958 r5965 555 555 556 556 def __onWxGotFocus(self, evt): 557 self.Form._controlGotFocus(self) 557 558 self._pushStatusText() 558 559 if isinstance(self, dabo.ui.dGrid):
