[Mpuls-commits] r916 - wasko/branches/2.0/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 26 18:14:45 CET 2010


Author: torsten
Date: 2010-01-26 18:14:44 +0100 (Tue, 26 Jan 2010)
New Revision: 916

Modified:
   wasko/branches/2.0/waskaweb/lib/helpers.py
Log:
* waskaweb/lib/helpers.py (formatNumber): Removed not called from anywhere



Modified: wasko/branches/2.0/waskaweb/lib/helpers.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-26 17:12:51 UTC (rev 915)
+++ wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-26 17:14:44 UTC (rev 916)
@@ -86,11 +86,6 @@
     except KeyError:
         return ''
 
-def formatNumber(number):
-    retval = locale.format("%.2f",(number),1)
-    return retval
-
-
 # Format functions 
 def format_number(number):
     retval = locale.format("%.2f",(number),1)
@@ -184,7 +179,7 @@
 def timedelta_in_weeks(ti, empty=None):
     if ti is None:
         return empty
-    return formatNumber(float(ti.days) / 7.0 + ti.seconds / (60.0 * 24.0 * 7.0))
+    return format_number(float(ti.days) / 7.0 + ti.seconds / (60.0 * 24.0 * 7.0))
 
 def human_timedelta(td, empty=None):
     if td is None:



More information about the Mpuls-commits mailing list