Looks like an oversight. Please submit an issue on Google Code. Thanks.
Anthony
On Friday, April 26, 2013 5:22:30 AM UTC-4, Alex wrote:
>
> If I pass minimum/maximum to the validator then the error_message gets
> translated, otherwise it uses the original error_message.
> db.mytable.myfield.requires = IS_INT_IN_RANGE(1, error_message='The field
> must contain a number')
> but without min/max I have to use T(...):
> db.mytable.myfield.requires = IS_INT_IN_RANGE(error_message=T('The field
> must contain a number'))
>
> this seems a little bit inconsistent to me. Couldn't it be done similar to
> the IS_NOT_EMPTY validator where the message is always translated in the
> call method?
>
> Alex
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.