[Mpuls-commits] r3611 - in base/trunk: . mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Sep 13 17:36:00 CEST 2010
Author: bh
Date: 2010-09-13 17:35:59 +0200 (Mon, 13 Sep 2010)
New Revision: 3611
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/controllers/case_bundle.py
Log:
* mpulsweb/controllers/case_bundle.py
(CaseBundleController.bundleAction): There's no need to get the
user object from the session for an export action.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-09-13 15:32:07 UTC (rev 3610)
+++ base/trunk/ChangeLog 2010-09-13 15:35:59 UTC (rev 3611)
@@ -1,6 +1,12 @@
2010-09-13 Bernhard Herzog <bh at intevation.de>
* mpulsweb/controllers/case_bundle.py
+ (CaseBundleController.bundleAction): There's no need to get the
+ user object from the session for an export action.
+
+2010-09-13 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/controllers/case_bundle.py
(CaseBundleController.bundleAction): Combine the various export
cases into one if-block. Apart from the format parameter in the
export method call they were identical.
Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py 2010-09-13 15:32:07 UTC (rev 3610)
+++ base/trunk/mpulsweb/controllers/case_bundle.py 2010-09-13 15:35:59 UTC (rev 3611)
@@ -159,7 +159,6 @@
return render('/casebundle/editor.mako')
if action.startswith("export"):
- user = session['USER_AUTHORIZED']
case_bundle = self._filterBundle(case_bundle, (1, 2))
if case_bundle.isEmpty():
return self._empty_caselist()
More information about the Mpuls-commits
mailing list