(self, value)
| 43 | class ResistValidator(InputValidator): |
| 44 | |
| 45 | def _validateWithReason(self, value): |
| 46 | if not value: |
| 47 | return True, '' |
| 48 | value = strToFloat(value) |
| 49 | if value is None: |
| 50 | return False, _t('Incorrect formatting (decimals only)') |
| 51 | if value < 0 or value > 100: |
| 52 | return False, _t('Incorrect range (must be 0-100)') |
| 53 | return True, '' |
| 54 | |
| 55 | |
| 56 | class TargetProfileNameValidator(BaseValidator): |
nothing calls this directly
no test coverage detected