[Mpuls-commits] r2797 - waska/branches/1.7/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 28 15:25:11 CEST 2010


Author: torsten
Date: 2010-05-28 15:25:11 +0200 (Fri, 28 May 2010)
New Revision: 2797

Modified:
   waska/branches/1.7/waskaweb/lib/helpers.py
Log:
Implemented simple logic to show validity in caseoverview.


Modified: waska/branches/1.7/waskaweb/lib/helpers.py
===================================================================
--- waska/branches/1.7/waskaweb/lib/helpers.py	2010-05-28 13:20:13 UTC (rev 2796)
+++ waska/branches/1.7/waskaweb/lib/helpers.py	2010-05-28 13:25:11 UTC (rev 2797)
@@ -45,7 +45,9 @@
 DBS_LIST = {}
 
 def get_validity(tags):
-    return 0
+    if 4 in tags: return 5 # ESF-Berichterstattung
+    if 3 in tags: return 4 # Grundsätzlich auswertbar
+    else: return 0 # nicht wirklich auswertbar
 
 def load_db_list_from_file(fname):
     if os.path.isfile(fname):



More information about the Mpuls-commits mailing list