aspineux schrieb:
> class EmailNameValidator(Regex):
>     regex = r"^[a-zA-Z_\-0-9]*$"
>     messages = {
>         'invalid': _('Enter only letters, numbers, or _
> (underscore)'),
>         }

> OPS: If I remove the _() operator, then its works !
> Any idea ?

Which one, the outer one or the inner one?

> TypeError: Error when calling the metaclass bases
>     expected string or buffer

This the error that used to occur with previous non-gettext versions of
FormEncode, when you tried to make a validation error message
translatable. But you seem to be using version 0.7.1, which should
support translatable messages.

Chris

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to