[Mpuls-commits] r3441 - in wasko/trunk: . waskoweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 18 16:47:27 CEST 2010


Author: bh
Date: 2010-08-18 16:47:25 +0200 (Wed, 18 Aug 2010)
New Revision: 3441

Modified:
   wasko/trunk/ChangeLog
   wasko/trunk/waskoweb/lib/search.py
Log:
* waskoweb/lib/search.py (CaseSearch.wasko_gender_mapping): The
values are strings.


Modified: wasko/trunk/ChangeLog
===================================================================
--- wasko/trunk/ChangeLog	2010-08-18 14:26:16 UTC (rev 3440)
+++ wasko/trunk/ChangeLog	2010-08-18 14:47:25 UTC (rev 3441)
@@ -1,5 +1,10 @@
 2010-08-18  Bernhard Herzog  <bh at intevation.de>
 
+	* waskoweb/lib/search.py (CaseSearch.wasko_gender_mapping): The
+	values are strings.
+
+2010-08-18  Bernhard Herzog  <bh at intevation.de>
+
 	* waskoweb/lib/search.py (CaseSearch.VALID_OPTIONS): Extend the
 	base class value with "gender"
 	(CaseSearch.wasko_gender_mapping): New. Map generic mpuls values to the

Modified: wasko/trunk/waskoweb/lib/search.py
===================================================================
--- wasko/trunk/waskoweb/lib/search.py	2010-08-18 14:26:16 UTC (rev 3440)
+++ wasko/trunk/waskoweb/lib/search.py	2010-08-18 14:47:25 UTC (rev 3441)
@@ -41,7 +41,7 @@
                      + ("gender",))
 
     # In wasko, the values for male and female are swapped.
-    wasko_gender_mapping = {1: 0, 0: 1}
+    wasko_gender_mapping = {"1": "0", "0": "1"}
 
     def get_gender_clause(self, search, options):
         gender = options.get("gender")



More information about the Mpuls-commits mailing list