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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 2 16:16:11 CEST 2010


Author: torsten
Date: 2010-08-02 16:16:10 +0200 (Mon, 02 Aug 2010)
New Revision: 3301

Modified:
   base/trunk/mpulsweb/controllers/formularpage.py
Log:
* mpulsweb/controllers/formularpage.py (FormularpageController.save):
  If "checktags" is enabled in config. Check validity of case and set
  tags.


Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py	2010-08-02 14:14:24 UTC (rev 3300)
+++ base/trunk/mpulsweb/controllers/formularpage.py	2010-08-02 14:16:10 UTC (rev 3301)
@@ -9,13 +9,14 @@
 
 from pylons import request, session, c
 from pylons import g
-from mpulsweb.lib.translation import _
 from pylons.controllers.util import abort, redirect_to
 
 from formed.instance.backends.postgres import DBFactory as InstanceFactory, \
 DBRepeatInstanceNode as RepeatInstanceNode
 from formed.instance.tree import SetDataException, RepeatInstanceContainerNode
 
+
+from mpulsweb.lib.translation import _
 from mpulsweb.lib.security import checkRole
 from mpulsweb.lib.db import  PostgresDBInterface
 from mpulsweb.lib.navigation import  mark_folderopen
@@ -215,9 +216,8 @@
 
             # Check consistence of case and retag
             if g.mpuls_config.is_enabled ('case-module', 'checktags'):
-                # TODO: Implement application based tagging
-                pass
-                #log.debug('Tagging case: %s' % session['case'].id)
+                case = self._loadCase(session['case'].id)
+                case.checkValidity()
 
         except SetDataException, err:
             # Do nothing than setting the status message. In the future the



More information about the Mpuls-commits mailing list