Hi!


Here in Brazil we use '.' as thousands separator and ',' as decimal
separator.  If I try writing a number (money) as: 123,00 and use a Number
validator, then it fails.  If I write it as '123.00' (it doesn't make sense
for us, except if we use US format...) it passes (I don't mind writing
'12345,00' instead of '12.345,00', so thousands separator isn't needed...).

For displaying numbers I can use turbogears.format.format_currency() and it
shows up correctly, but how can I validate input accordingly to the locale
being used?

I took a look at formencode.validators and there's no money validator and I
found no way to pass decimal separator and thousands separator to this
validator.  Has anybody done something along these lines?  Is there some way
to integrate TG I18N's format_currency with the number validator?


TIA,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to