[Mpuls-commits] r2343 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 14 14:52:53 CEST 2010


Author: torsten
Date: 2010-04-14 14:52:53 +0200 (Wed, 14 Apr 2010)
New Revision: 2343

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.init_case): Removed
	code to load navigation. Is now in lib/base.py


Modified: wasko/branches/2.0/mpulsweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-14 12:52:09 UTC (rev 2342)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-14 12:52:53 UTC (rev 2343)
@@ -8,7 +8,6 @@
 
 
 from mpulsweb.lib.base import BaseController, render, h
-from mpulsweb.lib.navigation import get_navigation
 from mpulsweb.lib.security import checkRole
 from mpulsweb.lib.dialogs import checkPrivacyStatement
 from mpulsweb.lib.validators import SetStandinForm, SetEditorForm
@@ -64,16 +63,6 @@
     def init_case(self, id):
         '''Return a case object'''
         case = self._loadCase(id)
-        # New session code
-        session_case = case.getSessionCase()
-        session['case'] = session_case
-
-        open_folders = []
-        navigation = get_navigation(id)
-        session['render_mode'] = 'ro'
-        session['navigation.tree'] = navigation
-        session['navigation.openfolders'] = open_folders
-        session.save()
         return case
 
     @checkRole(('admin', 'cm', 'pt_dlr'))



More information about the Mpuls-commits mailing list