Re: [web2py] Re: Currency formating

2017-08-28 Thread Daniel Dos Santos Guilhermino
Bruno, It's so old! But helped a lot. Thank you. Any way, news about locale? Best regards, Daniel Guilhermino Em quarta-feira, 25 de agosto de 2010 18:03:54 UTC-3, rochacbruno escreveu: > > I solved using temporarily this: > > def Moeda(valor, formatado=True): > from locale import setloca

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
I solved using temporarily this: def Moeda(valor, formatado=True): from locale import setlocale, currency, LC_ALL try: setlocale(LC_ALL,'pt_BR.UTF-8') except: setlocale(LC_ALL,'portuguese') if formatado: return 'R$ %s' % currency(valor, grouping=True, symbo

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
Massimo, What is your recomendation to deal with currency in web2py? 2010/8/25 Bruno Rocha > Look at > http://code.google.com/p/python-money/source/browse/trunk/money/Money.py > > Python-money does not use "locale" > > 2010/8/25 mdipierro > > web2py cannot support locale because it is not thre

Re: [web2py] Re: Currency formating

2010-08-25 Thread Bruno Rocha
Look at http://code.google.com/p/python-money/source/browse/trunk/money/Money.py Python-money does not use "locale" 2010/8/25 mdipierro > web2py cannot support locale because it is not thread safe, If one app > changes the locale it would change it for all apps. > > On Aug 25, 12:07 am, Bruno R

[web2py] Re: Currency formating

2010-08-25 Thread mdipierro
web2py cannot support locale because it is not thread safe, If one app changes the locale it would change it for all apps. On Aug 25, 12:07 am, Bruno Rocha wrote: > Hi, > > Actually, I am using these methods to work with money formating. > > some tries with python-money and works very > wellhttp