Re: Formatted currency output question

2009-03-10 Thread Joshua Russo
On Mar 10, 8:29 am, Malcolm Tredinnick wrote: > On Tue, 2009-03-10 at 02:11 -0700, Joshua Russo wrote: > > I found this in my searches for formatting a decimal as a proper > > currency output:http://www.djangosnippets.org/snippets/552/ > > Oh, that's a really bad idea.

Re: Formatted currency output question

2009-03-10 Thread Malcolm Tredinnick
On Tue, 2009-03-10 at 02:11 -0700, Joshua Russo wrote: > I found this in my searches for formatting a decimal as a proper > currency output: http://www.djangosnippets.org/snippets/552/ Oh, that's a really bad idea. :-( Calling setlocale() in multi-threaded applications is simply not something

Re: Formatted currency output question

2009-03-10 Thread Joshua Russo
Oh ya, I forgot to mention that I'm not using the snippet as advertised either. I'm trying to make a CurrencyField object. Of course then I realized that the formatting of at least the admin list display was done outside of the Field objects, this (I believe the file is called result_list.py) is

Formatted currency output question

2009-03-10 Thread Joshua Russo
I found this in my searches for formatting a decimal as a proper currency output: http://www.djangosnippets.org/snippets/552/ The problem I'm running into is that the setLocale() line seems to be choking on the non-base 128 characters that display in my site. I'm creating the site to display