Hi, 

I really enjoy the template engine, I use it some time now for web output, 
and I try to use it to edit the xml-content of OpenOffice odt files (to be 
able to design and generate pdf's, I'll open source this later.). 

What I really would need, is to do some formatting I need to do in the 
python statements in the template.

Is there any way I could do something like that?
('%.2f' % 1.2333333).replace('.', ',')
or something like:
import locale
locale.setlocale(locale.LC_ALL, 'FR')
locale.format('%.2f', 1.2333333)

Thanks in advance for your help, hope we have a solution to this! 
Yours Florian.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/EfGMKNmeZ44J.
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/webpy?hl=en.

Reply via email to