Provide an optional bounds to IS_LAT() & IS_LON() Validators

Bug #509359 reported by Fran Boon
6
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/validators.py

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!

Revision history for this message
Fran Boon (flavour) wrote :

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

Fran Boon (flavour)
Changed in sahana-eden:
assignee: nobody → Fran Boon (flavour)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.