[Mpuls-commits] r2620 - wasko/branches/2.0/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 4 15:50:35 CEST 2010


Author: torsten
Date: 2010-05-04 15:50:34 +0200 (Tue, 04 May 2010)
New Revision: 2620

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Wald #issue1471.
Always return values fro cases which are marked for anonymisation.


Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/caselist.mako	2010-05-04 13:44:38 UTC (rev 2619)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/caselist.mako	2010-05-04 13:50:34 UTC (rev 2620)
@@ -6,14 +6,6 @@
 import mpulsweb.lib.helper.filters as F
 import mpulsweb.lib.helpers as h
 
-def hide_if_anonymized(case, value):
-    """
-    If the case is marked for anonymisation return empty string, value otherwise
-    """
-    if case.getState().getState() == 4 and h.hasRole(['cm_ka']):
-        return ""
-    return value
-
 all_roles = ['admin', 'cm']
 
 ## Fields to show in the case list.  Each entry is a tuple of the form
@@ -33,7 +25,7 @@
   fs = d.overview_style
   print f
   field = (fn,f,fs, all_roles, 
-           lambda case, f=f: h.shorten(hide_if_anonymized(case, case.get_value(f)), 15))
+           lambda case, f=f: h.shorten(case.get_value(f), 15))
   fields.append(field)
 
 # Extend fields with default fields in overview



More information about the Mpuls-commits mailing list