http://www.w3.org/ns/prov#value | - error_message='not divisible by 3')One should first check that the value is an integer so that an exception will not occur.requires = [IS_INT_IN_RANGE(0, 100), IS_EXPR('value%3==0')]IS_DECIMAL_IN_RANGEIS_DECIMAL_IN_RANGEINPUT(_type='text', _name='name', requires=IS_DECIMAL_IN_RANGE(0, 10, dot=.))It converts the input into a Python Decimal or generates an error if the decimal d
|