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

Class IS_DYNAMIC_FIELDTYPE

source code

gluon.validators.Validator --+
                             |
                            IS_DYNAMIC_FIELDTYPE

Validator for field types in dynamic tables

Instance Methods
 
__init__(self, error_message="Unsupported field type")
Constructor
source code
 
__call__(self, value)
Validation of a value
source code
Class Variables
  SUPPORTED_TYPES = "boolean", "date", "datetime", "double", "in...
Method Details

__init__(self, error_message="Unsupported field type")
(Constructor)

source code 

Constructor

Parameters:
  • error_message - the error message for invalid values

__call__(self, value)
(Call operator)

source code 

Validation of a value

Parameters:
  • value - the value
Returns:
tuple (value, error)

Class Variable Details

SUPPORTED_TYPES

Value:
"boolean", "date", "datetime", "double", "integer", "reference", "stri\
ng", "text", "upload",