[Mpuls-commits] r5242 - in base/trunk: . mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Aug 18 17:19:54 CEST 2011
Author: bh
Date: 2011-08-18 17:19:53 +0200 (Thu, 18 Aug 2011)
New Revision: 5242
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/controllers/case_bundle.py
Log:
* mpulsweb/controllers/case_bundle.py
(CaseBundleController.markAnonymize): Fix local variable
reference.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-08-18 14:37:35 UTC (rev 5241)
+++ base/trunk/ChangeLog 2011-08-18 15:19:53 UTC (rev 5242)
@@ -1,6 +1,12 @@
2011-08-18 Bernhard Herzog <bh at intevation.de>
* mpulsweb/controllers/case_bundle.py
+ (CaseBundleController.markAnonymize): Fix local variable
+ reference.
+
+2011-08-18 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/controllers/case_bundle.py
(CaseBundleController.markAnonymize): Improve error reporting. The
case bundle methods like markAnonymize return for how many cases
in the bundle the action could be performed successfully. The old
Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py 2011-08-18 14:37:35 UTC (rev 5241)
+++ base/trunk/mpulsweb/controllers/case_bundle.py 2011-08-18 15:19:53 UTC (rev 5242)
@@ -363,7 +363,7 @@
if successes == total:
c.dialog_title = ungettext(u"Case marked for anonymisation!",
u"Cases marked for anonymisation!",
- num_cases)
+ total)
c.dialog_text = (
ungettext(u"The selected case was successfully marked for"
u" anonymisation. The administrators will review it"
@@ -371,7 +371,7 @@
u"All selected cases were successfully marked for"
u" anonymisation. The administrators will review them"
u" and perform for the final anonymisation.",
- num_cases)
+ total)
+ " " + _("Please click OK to continue."))
template = '/casebundle/dialogs/success_anonymize.mako'
elif successes > 0:
More information about the Mpuls-commits
mailing list