Provide an optional bounds to IS_LAT() & IS_LON() Validators
Bug #509359 reported by
Fran Boon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahana-Eden |
New
|
Undecided
|
Fran Boon |
Bug Description
We have IS_LAT() & IS_LON() validators in modules/
In order to help ensure that people enter data correctly for an emergency such as Haiti, we want to provide an optional sub-range.
(We've had several data entered with +72 Lon instead of -72 Lon!)
PS Remember to restart Python (Web2py/mod_wsgi) when testing module changes!
Changed in sahana-eden: | |
assignee: | nobody → Fran Boon (flavour) |
To post a comment you must log in.
Q Should bounds should be a global option configured in models/ 00_settings. py or passed to each validator instance?
I prefer the global...
F