I think you can do:

db.auth_user.email.requires.error_message = T(....)

Unless they have more then one validator.

On Sunday, 16 September 2012 21:21:00 UTC-5, Mark Li wrote:
>
> Is it possible to change the validator error messages in for auth fields 
> like "value already in database or empty," without having to redefine all 
> the validators for that field? For example, I wanted to change the 
> validator error message for IS_NOT_IN_DB for auth_user.email, and I wrote:
>
> db.auth_user.email.requires=IS_NOT_IN_DB(db, auth_user.email,error_message
> =T("Email already in use"))
>
>
> Would I have to define all the validators for auth_user.email now? Is 
> there a less intrusive way of changing the error message without overriding 
> the default validators for auth?
>

-- 



Reply via email to