[Mpuls-commits] r2455 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Apr 21 17:53:20 CEST 2010
Author: torsten
Date: 2010-04-21 17:53:18 +0200 (Wed, 21 Apr 2010)
New Revision: 2455
Modified:
wasko/branches/2.0/mpulsweb/controllers/case_overview.py
Log:
* mpulsweb/controllers/case_overview.py
(CaseOverviewController.overview): Wald #1416: Fix
counting of anonymized cases
Modified: wasko/branches/2.0/mpulsweb/controllers/case_overview.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-04-21 15:52:40 UTC (rev 2454)
+++ wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-04-21 15:53:18 UTC (rev 2455)
@@ -129,11 +129,7 @@
c.count_own = len([x for x in c.cases.getDatasets()
if x.getEditor().id == user.id])
c.count_standin = c.count_all - c.count_own
- if h.hasRole(['cm_ka']):
- c.count_anon = len([x for x in c.cases.getDatasets()
- if x.getState().getState() in (4, 5)])
- else:
- c.count_anon = len([x for x in c.cases.getDatasets()
+ c.count_anon = len([x for x in c.cases.getDatasets()
if x.getState().getState() == 5])
c.count_markanon = len([x for x in c.cases.getDatasets()
if x.getState().getState() == 4])
More information about the Mpuls-commits
mailing list