[Mpuls-commits] r1983 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 17 10:31:06 CET 2010


Author: torsten
Date: 2010-03-17 10:31:05 +0100 (Wed, 17 Mar 2010)
New Revision: 1983

Modified:
   wasko/branches/2.0/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py: Added config vars for default search options
in casesearch.


Modified: wasko/branches/2.0/mpulsweb/lib/config.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/config.py	2010-03-17 09:23:28 UTC (rev 1982)
+++ wasko/branches/2.0/mpulsweb/lib/config.py	2010-03-17 09:31:05 UTC (rev 1983)
@@ -229,6 +229,20 @@
         successors = []
         set('phases', 'successors', successors)
 
+        # SEARCH
+        # ------
+        # Admin defaults:
+        search_admin_default = [
+            {'search_str': '', 'state': ['3', '4'], 'phase': ['-1']}
+        ]
+        set('search', 'admin_defaults', search_admin_default)
+
+        # CM defaults:
+        search_cm_default = [
+            {'own': '1', 'search_str': '', 'state': ['1'], 'phase': ['-1']}
+        ]
+        set('search', 'cm_defaults', search_cm_default)
+
         # LOGBOOK
         # -------
         # Available types of entries



More information about the Mpuls-commits mailing list