[Mpuls-commits] r3003 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jun 11 16:05:18 CEST 2010


Author: torsten
Date: 2010-06-11 16:05:18 +0200 (Fri, 11 Jun 2010)
New Revision: 3003

Modified:
   base/trunk/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py: Added some comments on validity configuration and only enable "Nicht auswertbar" validity


Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py	2010-06-11 13:55:36 UTC (rev 3002)
+++ base/trunk/mpulsweb/lib/config.py	2010-06-11 14:05:18 UTC (rev 3003)
@@ -307,6 +307,9 @@
         
         # VALIDITIES
         # -------------
+        # Note that the grade of validity is defined by the ascending order of
+        # the elements in enabled_validities list. First element has lowest
+        # validity, last element has higest validity 
         validity_0 = {'name': 'Nicht auswertbar', 
                       'id': '0', 
                       'tags': [], 
@@ -319,7 +322,7 @@
                       'id': '2', 
                       'tags': [], 
                       'icon': 'validity-2-22.png'}
-        enabled_validities = [validity_0, validity_1, validity_2]
+        enabled_validities = [validity_0]
         set('validities', 'enabled', enabled_validities)
 
 



More information about the Mpuls-commits mailing list