[Mpuls-commits] r5353 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 15 18:46:31 CEST 2011
Author: bh
Date: 2011-09-15 18:46:31 +0200 (Thu, 15 Sep 2011)
New Revision: 5353
Modified:
base/trunk/mpulsweb/controllers/phase.py
Log:
Avoid unnecessary local variables and improve formatting.
This changes the internal formatting of an internationalized string, so
i18n updates will have to follow.
Modified: base/trunk/mpulsweb/controllers/phase.py
===================================================================
--- base/trunk/mpulsweb/controllers/phase.py 2011-09-15 16:32:55 UTC (rev 5352)
+++ base/trunk/mpulsweb/controllers/phase.py 2011-09-15 16:46:31 UTC (rev 5353)
@@ -26,11 +26,6 @@
@checkRole(('cm_ka'))
def setPhase(self, id, value):
-
- SET_PHASE_NOTIFICATION_SUCCESS = _("Phase changed!")
- SET_PHASE_NOTIFICATION_TEXT_SUCCESS= _("The phase could be changed successfully. \
- Please follow the shown steps to reach the phase overview.")
-
case = self._loadCase(id)
# Set phase
case.setPhase(value)
@@ -39,8 +34,10 @@
c.show_meta_case_hint = (g.mpuls_config.is_enabled('case-module',
'meta-server')
and case.getMeta().is_linked())
- c.dialog_title = SET_PHASE_NOTIFICATION_SUCCESS
- c.dialog_text = SET_PHASE_NOTIFICATION_TEXT_SUCCESS
+ c.dialog_title = _("Phase changed!")
+ c.dialog_text = _("The phase could be changed successfully."
+ " Please follow the shown steps to reach the phase"
+ " overview.")
c.url_ok = h.url_for(controller='/phase', action='overview', id=case.id)
return render('/phase/dialogs/success_set_phase.mako')
More information about the Mpuls-commits
mailing list