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

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


Author: torsten
Date: 2011-11-02 16:30:43 +0100 (Wed, 02 Nov 2011)
New Revision: 5528

Modified:
   base/trunk/mpulsweb/model/agencysettings.py
Log:
Issue2391: Ignore 'remindercondition' und 'reminderconditiondesc'. It is not
meant to be editiable by the user.


Modified: base/trunk/mpulsweb/model/agencysettings.py
===================================================================
--- base/trunk/mpulsweb/model/agencysettings.py	2011-11-02 15:26:01 UTC (rev 5527)
+++ base/trunk/mpulsweb/model/agencysettings.py	2011-11-02 15:30:43 UTC (rev 5528)
@@ -80,6 +80,11 @@
             try:
                 conn = db.getConnection()
                 for key, value in formdata.iteritems():
+                    # Ignore remindercondtion. It is not meant to be editable
+                    # by the user so ignore it
+                    if key in ['remindercondition', 
+                               'reminderconditiondesc']: continue
+
                     # TODO: Its not necessary to fetch a new cursor each time.
                     cur = None
                     try:



More information about the Mpuls-commits mailing list