On 9/5/06, MarAm <[EMAIL PROTECTED]> wrote:
you have to create a subclass of the NotEmpty validator, and override the "messages" attribute. Check the docs of Formencode to find how to do so
I have the field:
cuenta = TextField(label="Cuenta", validator = validators.NotEmpty)
when 'cuenta' is empty, I show the message:
"Please enter a value"
How I personalize that? or how show a spanish message:
"Por favor, ingrese un valor"
you have to create a subclass of the NotEmpty validator, and override the "messages" attribute. Check the docs of Formencode to find how to do so
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

