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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 26 12:13:05 CET 2010


Author: torsten
Date: 2010-02-26 12:13:04 +0100 (Fri, 26 Feb 2010)
New Revision: 1844

Modified:
   wasko/branches/2.0/mpulsweb/model/case.py
Log:
Fixed getting phasename


Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py	2010-02-26 11:11:42 UTC (rev 1843)
+++ wasko/branches/2.0/mpulsweb/model/case.py	2010-02-26 11:13:04 UTC (rev 1844)
@@ -268,7 +268,7 @@
 
         # Check if anonymization is allowed in the current phase 
         phasepart = self.phaseslist.get_current_phase()
-        desc  = g.mpuls_config.get('phases', 'description')[0].get(phasepart.id)
+        desc  = g.mpuls_config.get('phases', 'description')[0].get(phasepart.phase)
         if not phasepart.is_anonymizable():
             raise ConsistenceCheckException(
                 MARKANONYMIZE_FAILED_MIN_PHASE % desc)



More information about the Mpuls-commits mailing list