[Mpuls-commits] r4056 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 27 19:58:58 CEST 2010


Author: torsten
Date: 2010-10-27 19:58:57 +0200 (Wed, 27 Oct 2010)
New Revision: 4056

Modified:
   base/trunk/mpulsweb/controllers/formularpage.py
Log:
Removed check if the validity will be checked. This is now tested in the model
itself.


Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py	2010-10-27 17:57:32 UTC (rev 4055)
+++ base/trunk/mpulsweb/controllers/formularpage.py	2010-10-27 17:58:57 UTC (rev 4056)
@@ -230,12 +230,9 @@
         """
 
     def _check_case_validity(self, case_id):
-        """Check validity of the case given by case_id.
-        If the checktags case-module is not enabled, this method does nothing.
-        """
-        if g.mpuls_config.is_enabled ('case-module', 'checktags'):
-            case = self._loadCase(case_id)
-            case.checkValidity()
+        """Check validity of the case given by case_id."""
+        case = self._loadCase(case_id)
+        case.checkValidity()
 
     def _handle_automatic_phase_change(self, page_id):
         """Change Phase automatically depending on the state of the case"""



More information about the Mpuls-commits mailing list