[Mpuls-commits] r5238 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 17 18:41:31 CEST 2011


Author: bh
Date: 2011-08-17 18:41:30 +0200 (Wed, 17 Aug 2011)
New Revision: 5238

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/privacy.py
Log:
* mpulsweb/controllers/privacy.py (PrivacyController.decline): Use
the new case method markAnonymize instead of setting the case
state directly.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-08-17 16:30:53 UTC (rev 5237)
+++ base/trunk/ChangeLog	2011-08-17 16:41:30 UTC (rev 5238)
@@ -1,5 +1,11 @@
 2011-08-17  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/privacy.py (PrivacyController.decline): Use
+	the new case method markAnonymize instead of setting the case
+	state directly.
+
+2011-08-17  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/case.py (CaseController._markForAnonymize):
 	Use the new case method markAnonymize instead of setting the case
 	state directly. The local variable to which the return value of

Modified: base/trunk/mpulsweb/controllers/privacy.py
===================================================================
--- base/trunk/mpulsweb/controllers/privacy.py	2011-08-17 16:30:53 UTC (rev 5237)
+++ base/trunk/mpulsweb/controllers/privacy.py	2011-08-17 16:41:30 UTC (rev 5238)
@@ -103,7 +103,7 @@
             # Mark case for anonymizion
             try:
                 case.make_anonymizable()
-                case.getState().setState(4)
+                case.markAnonymize()
                 c.dialog_title = _(u"""Freed case document to anonymise.""")
                 c.dialog_text = _(u"The case document has been freed to be"
                         u" anonymised and has been given to\n"



More information about the Mpuls-commits mailing list