Opened 9 years ago

Closed 8 years ago

#2364 closed enhancement (fixed)

[patch] Add a numeric range validator

Reported by: mattmcc Owned by: adrian
Component: Core (Other) Version:
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This patch adds NumericRangeValidator to core/validators.py. Both upper and lower bounds are optional.

Usages:

minimumValue = NumericRangeValidator(lower_bound=10)
maximumValue = NumericRangeValidator(upper_bound=20)
valueRange = NumericRangeValidator(10,20)

Attachments (3)

numericrangevalidator.diff (1.4 KB) - added by mattmcc 9 years ago.
numericrangevalidator-doc.diff (736 bytes) - added by mattmcc 9 years ago.
Doc patch for docs/forms.txt
numericrangevalidator-doc-1.diff (690 bytes) - added by Matt McClanahan <cardinal@…> 9 years ago.
Doc patch for docs/forms.txt - Rephrased a bit

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by mattmcc

Changed 9 years ago by mattmcc

Doc patch for docs/forms.txt

Changed 9 years ago by Matt McClanahan <cardinal@…>

Doc patch for docs/forms.txt - Rephrased a bit

comment:1 Changed 8 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [4039]) Fixed #2364: added NumberIsInRange validator. Thanks, Matt McClanahan.

Note: See TracTickets for help on using tickets.
Back to Top