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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 1 14:39:24 CET 2010


Author: torsten
Date: 2010-02-01 14:39:22 +0100 (Mon, 01 Feb 2010)
New Revision: 1068

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


Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-01 13:37:57 UTC (rev 1067)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-01 13:39:22 UTC (rev 1068)
@@ -875,39 +875,6 @@
                                           auto_insert_errors=False,
                                           errors=c.form_errors)
 
-    @checkRole('cm_ka')
-    def deleteLogbookEntry(self, id, confirmed=False):
-        id = self._checkInt(id)
-        confirmed = self._checkBool(confirmed)
-        if confirmed == 1:
-            try:
-                Logbook().deleteEntryById(int(id))
-                c.success_for = LOGBOOK_ENTRY_DELETE_SUCCESS
-                c.success_text = LOGBOOK_ENTRY_DELETE_SUCCESS_TEXT
-                c.url_ok = "/case/logbook/%s" % str(session['case'].id)
-                return render('/logbook/dialogs/success_delete_logbook_entry.mako')
-            except:
-                traceback.print_exc(file=sys.stderr)
-                c.failed_for = LOGBOOK_ENTRY_DELETE_FAILED
-                c.failed_text = LOGBOOK_ENTRY_DELETE_FAILED_TEXT
-                c.url_ok = "/case/logbook/%s" % str(session['case'].id)
-                return render('/logbook/dialogs/failed_delete_logbook_entry.mako')
-        else:
-            c.confirm_for = DELETE_LOGBOOK_ENTRY_CONFIRM
-            c.question = DELETE_LOGBOOK_ENTRY_CONFIRM_TEXT
-            c.url_yes = "/case/deleteLogbookEntry/%s/1" % id
-            c.url_no = "/case/logbook/%s" % session['case'].id
-            return render('/logbook/dialogs/confirm_delete_logbook_entry.mako')
-
-    @checkRole(('admin_ka', 'cm_ka'))
-    @checkPrivacyStatement('showAppointment')
-    def showAppointment(self, id, confirmed):
-        factory = CaseAppointmentFactory()
-        id = self._checkInt(id)
-        app = factory.loadById(id)
-        c.appointment = app
-        return render('/casemanagement/showAppointment.mako')
-
     @checkRole(('cm_ka'))
     def editAppointment(self, id):
         id = self._checkInt(id)



More information about the Mpuls-commits mailing list