[Mpuls-commits] r1276 - in wasko/branches/2.0: . waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 5 15:11:38 CET 2010


Author: bh
Date: 2010-02-05 15:11:36 +0100 (Fri, 05 Feb 2010)
New Revision: 1276

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAction): Always
create a new SessionCase object and make sure it's actually stored
in the session.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-05 14:07:41 UTC (rev 1275)
+++ wasko/branches/2.0/ChangeLog	2010-02-05 14:11:36 UTC (rev 1276)
@@ -1,3 +1,9 @@
+2010-02-05  Bernhard Herzog  <bh at intevation.de>
+
+	* waskaweb/controllers/case.py (CaseController.newAction): Always
+	create a new SessionCase object and make sure it's actually stored
+	in the session.
+
 2010-02-05  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* mpulsweb/config/environment.py (load_environment): use

Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-05 14:07:41 UTC (rev 1275)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-05 14:11:36 UTC (rev 1276)
@@ -316,12 +316,10 @@
     @checkRole('cm_ka')
     def newAction(self):
         # TODO: Use htmlfill here!
-        try:
-            session_case = session['case']
-        except KeyError:
-            session_case = SessionCase()
-
+        session_case = SessionCase()
         session_case.setData(request.params)
+
+        session['case'] = session_case
         session.save()
 
         # Do we want to print the statement?



More information about the Mpuls-commits mailing list