[Mpuls-commits] r1816 - wasko/branches/2.0/jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 17:36:54 CET 2010


Author: torsten
Date: 2010-02-25 17:36:53 +0100 (Thu, 25 Feb 2010)
New Revision: 1816

Modified:
   wasko/branches/2.0/jmdweb/controllers/case.py
Log:
* jmdweb/controllers/case.py (CaseController.reset): Deleted. Is
  implemented in mpulsweb now. 


Modified: wasko/branches/2.0/jmdweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/case.py	2010-02-25 16:33:11 UTC (rev 1815)
+++ wasko/branches/2.0/jmdweb/controllers/case.py	2010-02-25 16:36:53 UTC (rev 1816)
@@ -127,11 +127,6 @@
 Die Fallakte wurde erfolgreich importiert. Bitte klicken Sie auf "OK",
 um zur Fallaktenübersicht fortzufahren."""
 
-RESTORE_CONFIRM = u"""Fallakte wiederherstellen?"""
-RESTORE_CONFIRM_TEXT = u"""\
-Wollen Sie wirklich die Fallakte wiederherstellen? Die Fallakte ist
-danach wieder für die Nutzer bearbeitbar."""
-
 def checkPrivacyStatement(context='select'):
     '''Decorator for the methods in the case controller'''
     def validate(func, self, *args, **kwargs):
@@ -286,25 +281,6 @@
                                           auto_insert_errors=False,
                                           errors=c.form_errors)
 
-    @checkRole('admin_ka')
-    def restore(self, id, confirmed):
-        id = self._checkInt(id)
-        confirmed = self._checkBool(confirmed)
-        if confirmed == 1:
-            case = self._loadCase(id)
-            case.restore()
-            c.success_for = u'Fallakte wiederhergestellt!'
-            c.success_text = u'Bitte klicken Sie "OK", um fortzufahren.'
-            c.url_ok = h.url_for(controller="/case_overview")
-            return render('/casemanagement/dialogs/success_restore.mako')
-        else:
-            c.context = "../main.mako"
-            c.confirm_for = RESTORE_CONFIRM
-            c.question = RESTORE_CONFIRM_TEXT
-            c.url_yes = "/case/restore/%s/1" % id
-            c.url_no = "/case_overview/"
-            return render('/casemanagement/dialogs/confirm_restore.mako')
-
     @checkRole('cm_ka')
     def markForAnonymizeFromOverview(self, id, confirmed):
         try:



More information about the Mpuls-commits mailing list