[Mpuls-commits] r2641 - wasko/branches/2.0/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 5 11:18:03 CEST 2010


Author: torsten
Date: 2010-05-05 11:17:57 +0200 (Wed, 05 May 2010)
New Revision: 2641

Modified:
   wasko/branches/2.0/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (MpulsCaseState.getPhaseDescription): Fixed
	function to get the current phase description for the info field.


Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py	2010-05-05 09:16:58 UTC (rev 2640)
+++ wasko/branches/2.0/mpulsweb/model/case.py	2010-05-05 09:17:57 UTC (rev 2641)
@@ -1176,7 +1176,7 @@
         phase = phases.get_current_phase()
         desc.append(g.mpuls_config.get('phases',
                                        'description')[0].get(phase.phase))
-        if phase.is_active():
+        if isinstance(phase, StartPhasePart):
             desc.append(_('Running'))
         else:
             desc.append(_('Finished'))



More information about the Mpuls-commits mailing list