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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 2 16:24:39 CET 2011


Author: torsten
Date: 2011-11-02 16:24:39 +0100 (Wed, 02 Nov 2011)
New Revision: 5526

Modified:
   base/trunk/mpulsweb/model/agencysettings.py
Log:
Tag all cases after saving values in agencysettings.


Modified: base/trunk/mpulsweb/model/agencysettings.py
===================================================================
--- base/trunk/mpulsweb/model/agencysettings.py	2011-11-02 15:23:36 UTC (rev 5525)
+++ base/trunk/mpulsweb/model/agencysettings.py	2011-11-02 15:24:39 UTC (rev 5526)
@@ -33,10 +33,11 @@
 import traceback
 
 import psycopg2.extras
+from pylons import config
 
-from mpulsweb.lib.base import render, g
+from mpulsweb.lib.base import render, g, session
 from mpulsweb.lib.db import db
-from mpulsweb.lib.helpers import ensure_unicode
+from mpulsweb.lib.helpers import ensure_unicode, get_TagSetter
 
 
 FETCH_SETTINGS_SQL = """SELECT bez, wert from ka_konfiguration_tbl_view"""
@@ -94,6 +95,10 @@
                                 pass
             finally:
                 db.recycleConnection(conn)
+                if g.mpuls_config.is_enabled('case-module', 'checktags'):
+                    setter = get_TagSetter(
+                        session['USER_AUTHORIZED'], config)
+                    setter.perform()
         except:
             traceback.print_exc(file=sys.stderr)
 



More information about the Mpuls-commits mailing list