Opened 18 years ago
Closed 18 years ago
#2364 closed enhancement (fixed)
[patch] Add a numeric range validator
Reported by: | Matt McClanahan | Owned by: | Adrian Holovaty |
---|---|---|---|
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: | no | UI/UX: | no |
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)
Change History (4)
by , 18 years ago
Attachment: | numericrangevalidator.diff added |
---|
by , 18 years ago
Attachment: | numericrangevalidator-doc.diff added |
---|
by , 18 years ago
Attachment: | numericrangevalidator-doc-1.diff added |
---|
Doc patch for docs/forms.txt - Rephrased a bit
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Doc patch for docs/forms.txt