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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 7 20:51:19 CEST 2011


Author: bh
Date: 2011-10-07 20:51:17 +0200 (Fri, 07 Oct 2011)
New Revision: 5428

Modified:
   base/trunk/mpulsweb/lib/config.py
Log:
Use correct python types for the default values for the search form.
The parameters 'own', 'standin', 'editor' should be ints and the
parameters 'state', 'phase' and 'federal_state' are lists of ints.


Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py	2011-10-07 18:32:46 UTC (rev 5427)
+++ base/trunk/mpulsweb/lib/config.py	2011-10-07 18:51:17 UTC (rev 5428)
@@ -372,13 +372,13 @@
         # Admin defaults:
         search_admin_default = [
             {
-                'own': '0',
-                'standin': '0',
-                'editor': '-1',
+                'own': 0,
+                'standin': 0,
+                'editor': -1,
                 'search_str': '',
-                'state': ['3', '4'],
-                'phase': ['-1'],
-                'federal_state': ['0', '1'],
+                'state': [3, 4],
+                'phase': [-1],
+                'federal_state': [0, 1],
                 'sdate': '',
                 'edate': ''
                 }
@@ -388,13 +388,13 @@
         # CM defaults:
         search_cm_default = [
             {
-                'own': '1',
-                'standin': '0',
-                'editor': '-1',
+                'own': 1,
+                'standin': 0,
+                'editor': -1,
                 'search_str': '',
-                'state': ['1'],
-                'phase': ['-1'],
-                'federal_state': ['0', '1'],
+                'state': [1],
+                'phase': [-1],
+                'federal_state': [0, 1],
                 'sdate': '',
                 'edate': ''
                 }



More information about the Mpuls-commits mailing list