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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 26 17:42:11 CET 2010


Author: torsten
Date: 2010-01-26 17:42:10 +0100 (Tue, 26 Jan 2010)
New Revision: 902

Modified:
   wasko/branches/2.0/waskaweb/lib/helpers.py
Log:
* waskaweb/lib/helpers.py (getCaseShort): Call shorten function from lib.filters.



Modified: wasko/branches/2.0/waskaweb/lib/helpers.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-26 16:40:46 UTC (rev 901)
+++ wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-26 16:42:10 UTC (rev 902)
@@ -88,11 +88,7 @@
         return ''
 
 def getCaseShort(name, n):
-    if len(name) < n:
-         return name
-    else:
-         n = n-3
-         return "%s..." % (name[:n])
+    return shorten(name, n)
 
 def formatNumber(number):
     retval = locale.format("%.2f",(number),1)



More information about the Mpuls-commits mailing list