[ZPT] Question re. formatting with locale enabled

Charlie Clark charlie at begeistert.org
Tue Mar 9 07:17:22 EST 2004


Dear list,

this isn't entirely specific to ZPT but I hope I can get an answer here. 
How do I best make use of the Python locale module in Zope assuming I've 
enabled it with -L "de_DE" when starting Zope?

ie. how do I best do the following:

<span tal:replace="python: locale.format('%0.2f', 3.1466)">answer</span>
to give me 3,14 using the German locale

Thank you very much

Charlie Clark



More information about the ZPT mailing list