Package s3 :: Module s3validators :: Class IS_LON
[frames] | no frames]

Class IS_LON

source code

gluon.validators.Validator --+    
                             |    
                        IS_LAT --+
                                 |
                                IS_LON


example:

INPUT(_type="text", _name="name", requires=IS_LON())

Longitude has to be in decimal degrees between -180 & 180
- we attempt to convert DMS format into decimal degrees

Instance Methods
 
__init__(self, error_message="Longitude/Easting should be between -180 & 180!") source code

Inherited from IS_LAT: __call__

Method Details

__init__(self, error_message="Longitude/Easting should be between -180 & 180!")
(Constructor)

source code 
Overrides: IS_LAT.__init__