True but than one would need to pass two error messages. You can pipe
two validators
[IS_MATCH('\-?\d+',error_message='not a number'),IS_INT_IN_RANGE
(0,100)]
On Oct 19, 11:00 pm, Richard <[email protected]> wrote:
> hello,
>
> I find the validator error "too small or too large" too general.
> Ideally they should return "not a number" if the int/float cast fails,
> or "too big" / "too small" when out of range.
>
> Would this work with the current API, or does each validator need to
> have a single error message?
>
> Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---