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

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


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

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/case.py
Log:
* 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
the setState method was assigned is not used anywhere, so it
doesn't matter that we don't assign to it anymore.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-08-17 16:18:32 UTC (rev 5236)
+++ base/trunk/ChangeLog	2011-08-17 16:30:53 UTC (rev 5237)
@@ -1,5 +1,13 @@
 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
+	the setState method was assigned is not used anywhere, so it
+	doesn't matter that we don't assign to it anymore.
+
+2011-08-17  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/model/case.py (MpulsCase.markDelete): New method to
 	mark the case for deletion. Derived classes may extend this
 	method.

Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2011-08-17 16:18:32 UTC (rev 5236)
+++ base/trunk/mpulsweb/controllers/case.py	2011-08-17 16:30:53 UTC (rev 5237)
@@ -145,7 +145,7 @@
 the admininstration. Please click on OK, to get back to the overview.""")
                 c.url_ok = h.url_for(controller="/case_overview")
                 case.make_anonymizable()
-                state = case.getState().setState(4)
+                case.markAnonymize()
                 session['render_mode'] = 'ro'
                 session.save()
                 return render('/casemanagement/dialogs/success_markanonymize.mako')



More information about the Mpuls-commits mailing list