Dang, why didn't I think of that. Thanks, that is exactly what I needed.
# process passes the kwarg to form.validate, so form.validate(message_...) is also valid.
form.process(message_onfailure = T("Wait a minute! This bird wouldn't voom if you put four million volts through it!"))
--
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/fUBLKVYdUZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
But then wouldn't I have to alter ALL of my grids/forms to override the message?
But then wouldn't I have to alter ALL of my grids/forms to override the message?
Oops, yes. For many forms, looks like the language file approach is better.
BTW. I think this is an example of why CRUD should not be deprecated. It could be easily modified to support something like
crud = CRUD(db)
crud.messages.on_failure = ...
Anthony--
The language file worked fine for me. Is that not a good way to solve the problem?