[google-appengine] Re: currency or comma in float numbers format

2009-01-03 Thread Remis B
That is fine but I have another question, How can I make and filter to be used in GAE templates. I mean to be able to use something like this {{ product.price|my_money_format_filter}} where my_money_format_filter is my own implementation of the filter. Remis B On Jan 3, 2:30 am, warreninaustinte

[google-appengine] Re: currency or comma in float numbers format

2009-01-02 Thread warreninaustintexas
I wrote my own function to convert since I couldn't find a Django filter or Python library to do so. I convert to a summary style format instead of full-precision currency: if abs(what_number) > 10: return_string = str(round(float(what_number)/10,places)) + "B" elif abs(w