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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 29 16:33:40 CEST 2010


Author: torsten
Date: 2010-04-29 16:33:40 +0200 (Thu, 29 Apr 2010)
New Revision: 2568

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.markForDelete): Set
	rendermode to "ro" after delete.
	* mpulsweb/controllers/case.py (CaseController._markForAnonymize): Set
	rendermode to "ro" after anonymization.


Modified: wasko/branches/2.0/mpulsweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-29 14:15:25 UTC (rev 2567)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py	2010-04-29 14:33:40 UTC (rev 2568)
@@ -100,6 +100,8 @@
             c.dialog_text = (u"Die Fallakte wurde zum Löschen an die"
                              u" Administration weitergeleitet.")
             c.url_ok = h.url_for(controller="/case_overview")
+            session['render_mode'] = 'ro'
+            session.save()
             return render('/casemanagement/dialogs/success_delete_cm.mako')
         else:
             c.context = "../main.mako"
@@ -163,6 +165,8 @@
             c.dialog_text = MARKANONYMIZE_SUCCESS_TEXT
             c.url_ok = h.url_for(controller="/case_overview")
             state = case.getState().setState(4)
+            session['render_mode'] = 'ro'
+            session.save()
             return render('/casemanagement/dialogs/success_markanonymize.mako')
         else:
             # Get description of the phase which will be set after anonymisation



More information about the Mpuls-commits mailing list