[Mpuls-commits] r3720 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 17 11:32:14 CEST 2010


Author: torsten
Date: 2010-09-17 11:32:14 +0200 (Fri, 17 Sep 2010)
New Revision: 3720

Modified:
   base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py: Issue1066: Check minimal required fields to
	to the phase the case will be anonymized in.


Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2010-09-17 09:31:21 UTC (rev 3719)
+++ base/trunk/mpulsweb/model/case.py	2010-09-17 09:32:14 UTC (rev 3720)
@@ -748,9 +748,11 @@
         minimal_rule = RuleLeaf()
         minimal_rule.setAttribute('expr', minimal_condition)
         if minimal_rule.getExpr().evaluate(context):
-            # Check minimal consistence. Also running cases can be anonymized.
+            # Also running cases can be anonymized, but check minimal
+            # consistence of case for the phase it will be anonymized.
             min_fields = g.mpuls_config.get('phases', 'minimal_fields_to_anonymize') 
-            self.check_consistence(min_fields)
+            end_phase = determineAnonymizedCaseEndPhase(self)
+            self.check_consistence(min_fields, end_phase)
         else:
             #Check full consistence
             self.check_consistence()



More information about the Mpuls-commits mailing list