[Mpuls-commits] r2438 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 20 14:52:09 CEST 2010


Author: torsten
Date: 2010-04-20 14:52:08 +0200 (Tue, 20 Apr 2010)
New Revision: 2438

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case_overview.py
Log:
* mpulsweb/controllers/case_overview.py (parseSearchOptions): Fixed
	search for editor.


Modified: wasko/branches/2.0/mpulsweb/controllers/case_overview.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_overview.py	2010-04-20 12:38:18 UTC (rev 2437)
+++ wasko/branches/2.0/mpulsweb/controllers/case_overview.py	2010-04-20 12:52:08 UTC (rev 2438)
@@ -39,12 +39,17 @@
             search_options.append('state:%s' % s)
 
     # Responsibilty
-    # (shown cases where the user is editor, or standin or both)
+    # shown cases where the user is editor, or standin or both
     if options.get('own'):
         search_options.append('own:%s' % user.id)
     if options.get('standin'):
         search_options.append('standin:%s' % user.id)
 
+    # Editor 
+    # shown cases where the user is editor or all (-1) 
+    if options.get('editor') and options.get('editor') != -1:
+        search_options.append('editor:%s' % options.get('editor'))
+
     # Phase
     if options.has_key('phase'):
         for pp in options['phase']:



More information about the Mpuls-commits mailing list