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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 26 08:46:09 CET 2010


Author: torsten
Date: 2010-02-26 08:46:07 +0100 (Fri, 26 Feb 2010)
New Revision: 1828

Modified:
   wasko/branches/2.0/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (MpulsCase.check_anonymizeability): New
method to check if a case can be anonymized. This check can enhance the
consistence check in some points, but it will always include the
consistence check


Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py	2010-02-26 07:24:38 UTC (rev 1827)
+++ wasko/branches/2.0/mpulsweb/model/case.py	2010-02-26 07:46:07 UTC (rev 1828)
@@ -236,6 +236,13 @@
         """
         pass
 
+    def check_anonymizeability(self):
+        """Raises ConsistenceCheckException if the case is not in a anonymizable state.  
+        """
+        #TODO: Add additional checks e.g on minimal required phase
+        #Finally check consistence
+        self.check_consistence()
+
     def make_consistent(self):
         """Will ensure that the case is in a (minimal) consistent state. That
         means that all missing required fields up to the current phase are set



More information about the Mpuls-commits mailing list