[Mpuls-commits] r4052 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 27 19:20:22 CEST 2010
Author: torsten
Date: 2010-10-27 19:20:20 +0200 (Wed, 27 Oct 2010)
New Revision: 4052
Modified:
base/trunk/mpulsweb/controllers/phase.py
Log:
* mpulsweb/controllers/phase.py (PhaseController.setPhase): Call setPhase
method of case object to trigger revalidating the phase after setting
the phase.
Modified: base/trunk/mpulsweb/controllers/phase.py
===================================================================
--- base/trunk/mpulsweb/controllers/phase.py 2010-10-27 17:18:41 UTC (rev 4051)
+++ base/trunk/mpulsweb/controllers/phase.py 2010-10-27 17:20:20 UTC (rev 4052)
@@ -34,8 +34,7 @@
def setPhase(self, id, value):
case = self._loadCase(id)
# Set phase
- state = case.getState()
- state.setPhase(value)
+ case.setPhase(value)
# After setting the phase. Show print-dialog
c.dialog_title = SET_PHASE_NOTIFICATION_SUCCESS
More information about the Mpuls-commits
mailing list