geoform.form¶
Module Contents¶
-
class
geoform.form.BBoxValidator¶ Bounding-Box validator which succeeds if the bbox value has the format
minx,miny,maxx,maxyand values are in range (-180 <= x <=180,-90 <= y <=90).
-
class
geoform.form.RangeValidator¶ Range validator which succeeds if the seperator is a dash, both numbers can be converted to ints and the min < max and min > 0
-
class
geoform.form.LongitudeValidator¶ Longitude validator to ensure any input values are between [-180,180]
-
class
geoform.form.LatitudeValidator¶ Latitude validator to ensure any input values are between [-90,90]
-
class
geoform.form.LongitudeBoundaryValidator¶ Longitude boundary validator to ensure input string is a tuple between [-180,180]
-
class
geoform.form.LatitudeBoundaryValidator¶ Latitude boundary validator to ensure input string is a tuple between [-90,90]
-
class
geoform.form.TupleFloatValidator¶ Float tuple validator
-
class
geoform.form.LonLatTupleValidator¶ Longitude, Latitude tuple validator
-
class
geoform.form.URLValidator(allowed_schemes=None)¶ URL validator which can configured with allowed URL schemes.
-
class
geoform.form.TextValidator(restricted_chars=None)¶
-
class
geoform.form.FileUploadValidator(storage, max_size)¶ Runs all validators for file upload checks.
-
class
geoform.form.FileFormatAllowedValidator(storage)¶ File format extension is allowed.
-
class
geoform.form.FileSizeLimitValidator(storage, max_size=2)¶ File size limit validator.
You can configure the maximum size by setting the max_size option to the maximum number of megabytes that you want to allow.