[Mpuls-commits] r3431 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 17 20:39:55 CEST 2010


Author: bh
Date: 2010-08-17 20:39:54 +0200 (Tue, 17 Aug 2010)
New Revision: 3431

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/case_overview.py
Log:
* mpulsweb/controllers/case_overview.py (parseSearchOptions):
Handle the gender options.  Should have been part of the previous
commit.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-08-17 18:38:39 UTC (rev 3430)
+++ base/trunk/ChangeLog	2010-08-17 18:39:54 UTC (rev 3431)
@@ -1,5 +1,11 @@
 2010-08-17  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/case_overview.py (parseSearchOptions):
+	Handle the gender options.  Should have been part of the previous
+	commit.
+
+2010-08-17  Bernhard Herzog  <bh at intevation.de>
+
 	Add basic support for search based on gender
 
 	* mpulsweb/lib/search.py (CaseSearch.get_gender_clause): New.

Modified: base/trunk/mpulsweb/controllers/case_overview.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_overview.py	2010-08-17 18:38:39 UTC (rev 3430)
+++ base/trunk/mpulsweb/controllers/case_overview.py	2010-08-17 18:39:54 UTC (rev 3431)
@@ -87,6 +87,11 @@
         search_options.append('sdate:%s' % options.get('sdate'))
         search_options.append('edate:%s' % options.get('edate'))
 
+    # gender
+    if options.get("gender", -2) != -2:
+        search_options.append("gender:%s" % options["gender"])
+
+
     return search_options
 
 



More information about the Mpuls-commits mailing list