1

I'm considering switching to Pyramid but I'm wondering on how to localize a form. How can I have a form that would accept/validate numbers in a locale specific format? (thousands and decimal separators, etc)

Django currently does this for me by using localize=True on fields.

RS7
  • 2,341
  • 8
  • 34
  • 57

1 Answers1

1

The Pyramid project is known for it's excellent documentation, and there is a Internationalization and Localization section available.

Pyramid does not, however, dictate what form framework you use in your applications. Localization services themselves are generally deferred to Babel, including number and date formatting routines. You'd have to either tie these into your form framework of choice or find a framework that already ties into Babel for this work (I know of none but that doesn't say much).

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343