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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 5 17:37:38 CEST 2010


Author: torsten
Date: 2010-05-05 17:37:38 +0200 (Wed, 05 May 2010)
New Revision: 2670

Modified:
   wasko/branches/2.0/mpulsweb/controllers/privacy.py
Log:
* mpulsweb/controllers/privacy.py (PrivacyController.decline): do not
	reset privacy statement when "make_anonymizable" fails


Modified: wasko/branches/2.0/mpulsweb/controllers/privacy.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/privacy.py	2010-05-05 15:34:16 UTC (rev 2669)
+++ wasko/branches/2.0/mpulsweb/controllers/privacy.py	2010-05-05 15:37:38 UTC (rev 2670)
@@ -121,14 +121,14 @@
             return render('/casemanagement/dialogs/failed_markanonymize.mako')
 
         if confirmed:
-            statement = case.getPrivacyStatement()
-            statement.decline()
             # Mark case for anonymizion
             try:
                 case.make_anonymizable()
                 c.dialog_title = MARKANONYMIZE_SUCCESS
                 c.dialog_text = MARKANONYMIZE_SUCCESS_TEXT
                 c.url_ok = h.url_for ('/case_overview')
+                statement = case.getPrivacyStatement()
+                statement.decline()
                 return render('/privacy/dialogs/decline_success.mako')
             except SetDataException, e:
                 errors = []



More information about the Mpuls-commits mailing list