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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jan 20 11:29:37 CET 2012


Author: torsten
Date: 2012-01-20 11:29:36 +0100 (Fri, 20 Jan 2012)
New Revision: 5779

Modified:
   base/trunk/mpulsweb/controllers/meta.py
Log:
Reset information on meta_discretion_statement in session to if the statement
is revoked.


Modified: base/trunk/mpulsweb/controllers/meta.py
===================================================================
--- base/trunk/mpulsweb/controllers/meta.py	2012-01-19 15:02:01 UTC (rev 5778)
+++ base/trunk/mpulsweb/controllers/meta.py	2012-01-20 10:29:36 UTC (rev 5779)
@@ -494,6 +494,9 @@
                       " Unlinking the meta case and revoking link permission.",
                       meta.master_id)
             meta.reset()
+            session['meta_discretion_statement'] = False
+            session['meta_acceptance_statement'] = False
+            session.save()
             text = _("The meta case doesn't seem to exist (anymore)"
                      " on the meta server. The most likely reason"
                      " for this is that the permission to store"
@@ -507,6 +510,9 @@
                       " Resetting the meta information",
                       meta.master_id)
             meta.reset()
+            session['meta_discretion_statement'] = False
+            session['meta_acceptance_statement'] = False
+            session.save()
             text = _("The meta-case has been anonymized."
                      " Please check whether the case has to be"
                      " anonymized as well."



More information about the Mpuls-commits mailing list