[Mpuls-commits] r1172 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 17:52:20 CET 2010


Author: torsten
Date: 2010-02-02 17:52:18 +0100 (Tue, 02 Feb 2010)
New Revision: 1172

Modified:
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.close): Deleted not
called from anywhere.


Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 16:50:33 UTC (rev 1171)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 16:52:18 UTC (rev 1172)
@@ -720,29 +720,6 @@
             return render('/casemanagement/dialogs/confirm_restore.mako')
 
     @checkRole('cm_ka')
-    def close(self, id, confirmed):
-        id = self._checkInt(id)
-        confirmed = self._checkBool(confirmed)
-        c.ds_id = id
-        if confirmed == 1:
-            case = self._setState(id, 2)
-            c.url_ok = h.url_for(controller="/case", action="organisation",
-                                 id=id)
-            c.success_for = u'Fallakte geschlossen!'
-            c.success_text = (u'Geschlossene Fallakten können Sie in der'
-                              u' Fallaktenübersicht durch anklicken des'
-                              u' Suchfilters "Geschlossen" einsehen.')
-            return render('/casemanagement/dialogs/success_case_close.mako')
-        else:
-            c.context = "main.mako"
-            c.confirm_for = CLOSE_CONFIRM
-            c.question = CLOSE_CONFIRM_TEXT
-            c.url_yes = "/case/close/%s/1" % id
-            c.url_no = h.url_for(controller="/case", action="organisation",
-                                 id=id)
-            return render('/casemanagement/dialogs/confirm_close.mako')
-
-    @checkRole('cm_ka')
     def markForAnonymizeFromOverview(self, id, confirmed):
         try:
             id = self._checkInt(id)



More information about the Mpuls-commits mailing list