[Mpuls-commits] r4184 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 16 11:30:51 CET 2010
Author: torsten
Date: 2010-11-16 11:30:50 +0100 (Tue, 16 Nov 2010)
New Revision: 4184
Modified:
base/trunk/mpulsweb/controllers/phase.py
Log:
* mpulsweb/controllers/phase.py: Moved translated strings into function.
Modified: base/trunk/mpulsweb/controllers/phase.py
===================================================================
--- base/trunk/mpulsweb/controllers/phase.py 2010-11-15 19:46:15 UTC (rev 4183)
+++ base/trunk/mpulsweb/controllers/phase.py 2010-11-16 10:30:50 UTC (rev 4184)
@@ -8,14 +8,8 @@
from mpulsweb.lib.security import checkRole
from mpulsweb.model.phase import PhaseFactory, PC_FULLAUTO
-
-SET_PHASE_NOTIFICATION_SUCCESS = _(u"Phase changed!")
-SET_PHASE_NOTIFICATION_TEXT_SUCCESS= _(u"""The phase could be changed successfully.
-Please follow the shown steps to reach the phase overview.""")
-
log = logging.getLogger(__name__)
-
class PhaseController(BaseController):
@checkRole(('admin_ka', 'cm_ka'))
@@ -32,6 +26,11 @@
@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)
More information about the Mpuls-commits
mailing list