requires = IS_EXPR('int(value)%3==0', |
requires = [IS_INT_IN_RANGE(0, 100), IS_EXPR('value%3==0')]
Displays an error message
requires = IS_EXPR('int(value)%3==0',
error_message='not divisible by 3')
" Web2py Book"