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

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


Author: bh
Date: 2011-08-17 18:45:06 +0200 (Wed, 17 Aug 2011)
New Revision: 5239

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.markForDelete): Use
the new case method markDelete instead of setting the case state
directly.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-08-17 16:41:30 UTC (rev 5238)
+++ base/trunk/ChangeLog	2011-08-17 16:45:06 UTC (rev 5239)
@@ -1,5 +1,11 @@
 2011-08-17  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/case.py (CaseController.markForDelete): Use
+	the new case method markDelete instead of setting the case state
+	directly.
+
+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.

Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2011-08-17 16:41:30 UTC (rev 5238)
+++ base/trunk/mpulsweb/controllers/case.py	2011-08-17 16:45:06 UTC (rev 5239)
@@ -67,7 +67,7 @@
         confirmed = self._checkBool(confirmed)
         if confirmed == 1:
             case = self._loadCase(id)
-            case.setState(3)
+            case.markDelete()
             c.dialog_title = _("""Case document deleted!""")
             c.dialog_text = _("""The case document is given to the administrator for deletion.""")
             c.url_ok = h.url_for(controller="/case_overview")



More information about the Mpuls-commits mailing list