[Mpuls-commits] r2600 - in wasko/branches/2.0: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 3 18:26:10 CEST 2010


Author: bh
Date: 2010-05-03 18:26:09 +0200 (Mon, 03 May 2010)
New Revision: 2600

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/controllers/case_bundle.py
Log:
* mpulsweb/controllers/case_bundle.py
(CaseBundleController.exportAction): Check the exportanonym flag
correctly.  form_result already contains the value as a python
bool, so there's no need to check it agains the string
representation.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-05-03 12:09:13 UTC (rev 2599)
+++ wasko/branches/2.0/ChangeLog	2010-05-03 16:26:09 UTC (rev 2600)
@@ -1,3 +1,11 @@
+2010-05-03  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/case_bundle.py
+	(CaseBundleController.exportAction): Check the exportanonym flag
+	correctly.  form_result already contains the value as a python
+	bool, so there's no need to check it agains the string
+	representation.
+
 2010-05-03  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po: Wald #1424: Fixed typo.

Modified: wasko/branches/2.0/mpulsweb/controllers/case_bundle.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_bundle.py	2010-05-03 12:09:13 UTC (rev 2599)
+++ wasko/branches/2.0/mpulsweb/controllers/case_bundle.py	2010-05-03 16:26:09 UTC (rev 2600)
@@ -487,7 +487,7 @@
         case_bundle = session.get('casebundle')
         form_result = validator.to_python(request.params)
         exporttype = form_result.get('exporttype')
-        exportanonym = form_result.get('exportanonym') == '1'
+        exportanonym = form_result.get('exportanonym')
         exportselection = form_result.get('exportselection')
         num, export = case_bundle.export(exporttype, 
                                          exportanonym, 



More information about the Mpuls-commits mailing list