Sorry to bother... it seems to be fixed alredy
(http://trac.turbogears.org/turbogears/ticket/900)


On 6/27/06, Ulysses Almeida <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>   I just made a validator class tha looks like this:
>
> class IntEventValidator(validators.Int):
>     messages = {'integer': "Invalid Event"}
>
>     def validate_python(self, value, state):
>         if not value in [1,2,3,4]:
>             raise validators.Invalid(self.message('integer', state),
>                                      value, state)
>
> How can I internationalize the "Invalid Event" string? I alredy tried
> put it in _() but TG hangs up with traceback:
>
> ...
>   File 
> "/usr/lib/python2.4/site-packages/FormEncode-0.5.1-py2.4.egg/formencode/api.py",
> line 198, in _initialize_docstring
>     default = re.sub(r'(%\(.*?\)[rsifcx])', r'``\1``', default)
>   File "/usr/lib/python2.4/sre.py", line 142, in sub
>     return _compile(pattern, 0).sub(repl, string, count)
> TypeError: Error when calling the metaclass bases
>
>   Thanks in advance!
>
> --
>  - Ulysses Almeida
>


-- 
 - Ulysses Almeida

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to