[Mpuls-commits] r3989 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 20 11:49:47 CEST 2010
Author: torsten
Date: 2010-10-20 11:49:46 +0200 (Wed, 20 Oct 2010)
New Revision: 3989
Modified:
base/trunk/mpulsweb/model/phase.py
Log:
* mpulsweb/model/phase.py (PhasePart.getDescription): Do not return
"Running" or "Finnished" appended to the phase description if phase is
unknown.
Modified: base/trunk/mpulsweb/model/phase.py
===================================================================
--- base/trunk/mpulsweb/model/phase.py 2010-10-20 09:26:08 UTC (rev 3988)
+++ base/trunk/mpulsweb/model/phase.py 2010-10-20 09:49:46 UTC (rev 3989)
@@ -286,10 +286,11 @@
desc = []
desc.append(g.mpuls_config.get('phases',
'description')[0].get(self.phase))
- if isinstance(self, StartPhasePart):
- desc.append(_('Running'))
- else:
- desc.append(_('Finished'))
+ if self.phase != '-1':
+ if isinstance(self, StartPhasePart):
+ desc.append(_('Running'))
+ else:
+ desc.append(_('Finished'))
return " ".join(desc)
def load(self, it):
More information about the Mpuls-commits
mailing list