[Mpuls-commits] r5495 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Oct 24 13:23:15 CEST 2011
Author: ludwig
Date: 2011-10-24 13:23:15 +0200 (Mon, 24 Oct 2011)
New Revision: 5495
Modified:
base/trunk/mpulsweb/controllers/case_bundle.py
Log:
Issue 2162: Rename method isEditor into filter_for_evaluate.
The case bundle of evaluation is filtered with this method. Standin cases are
filtered out in this context. It should be possible to use a different filter
in different applications.
Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py 2011-10-24 09:25:56 UTC (rev 5494)
+++ base/trunk/mpulsweb/controllers/case_bundle.py 2011-10-24 11:23:15 UTC (rev 5495)
@@ -170,7 +170,7 @@
if action == 'evaluate':
case_bundle = self._funcFilterBundle(case_bundle,
- self._isEditor)
+ self._filter_for_evaluate)
case_bundle = self._filterBundle(case_bundle, (1, 4, 5))
if case_bundle.isEmpty():
return self._empty_caselist()
@@ -249,7 +249,7 @@
u"\nin a state from which you can execute the selected action.")
return render('/casebundle/dialogs/error.mako')
- def _isEditor(self, case):
+ def _filter_for_evaluate(self, case):
return session['USER_AUTHORIZED'].getLogin() \
== case.getEditor().getLogin()
More information about the Mpuls-commits
mailing list