[Mpuls-commits] r5442 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 10 15:24:26 CEST 2011


Author: ludwig
Date: 2011-10-10 15:24:25 +0200 (Mon, 10 Oct 2011)
New Revision: 5442

Modified:
   base/trunk/mpulsweb/controllers/formularpage.py
Log:
Issue 956: Create a new navigation tree after every saving.


Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py	2011-10-10 12:49:56 UTC (rev 5441)
+++ base/trunk/mpulsweb/controllers/formularpage.py	2011-10-10 13:24:25 UTC (rev 5442)
@@ -14,7 +14,7 @@
 from mpulsweb.lib.translation import _
 from mpulsweb.lib.security import checkRole
 from mpulsweb.lib.db import  PostgresDBInterface
-from mpulsweb.lib.navigation import  mark_folderopen
+from mpulsweb.lib.navigation import  mark_folderopen, get_navigation
 
 from mpulsweb.lib.base import BaseController, render, session
 from mpulsweb.lib.helpers import url_for, literal
@@ -167,6 +167,7 @@
             # uncommitted fields data stored in the session.
             pass
         session['uncommited_fields'] = instance_tree.commit()
+        session['navigation.tree'] = get_navigation(case_id)
         session.save()
 
         # How to proceed after saving the data?



More information about the Mpuls-commits mailing list