[Mpuls-commits] r2552 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 28 15:37:48 CEST 2010


Author: torsten
Date: 2010-04-28 15:37:46 +0200 (Wed, 28 Apr 2010)
New Revision: 2552

Modified:
   wasko/branches/2.0/mpulsweb/lib/base.py
Log:
* mpulsweb/lib/base.py (BaseController._loadCase): Fixed Wald #1465.
	Do not reset rendermode and navigation on loading the same case again.


Modified: wasko/branches/2.0/mpulsweb/lib/base.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/base.py	2010-04-28 13:24:42 UTC (rev 2551)
+++ wasko/branches/2.0/mpulsweb/lib/base.py	2010-04-28 13:37:46 UTC (rev 2552)
@@ -83,7 +83,7 @@
 
         # Only reset navigation if case is switched
         log.debug("%s (%s) == %s (%s))" % (old_caseid, type(old_caseid), id, type(id)))
-        if old_caseid != id:
+        if int(old_caseid )!= int(id):
             open_folders = []
             navigation = get_navigation(id)
             session['render_mode'] = 'ro'



More information about the Mpuls-commits mailing list