[Mpuls-commits] r1135 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 2 14:47:20 CET 2010
Author: torsten
Date: 2010-02-02 14:47:18 +0100 (Tue, 02 Feb 2010)
New Revision: 1135
Modified:
wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.deleteAppointment):
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 13:45:51 UTC (rev 1134)
+++ wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-02 13:47:18 UTC (rev 1135)
@@ -749,31 +749,6 @@
except:
return render('/tests/trace.mako')
- @checkRole(('cm_ka'))
- def deleteAppointment(self, id, confirmed=False):
- id = self._checkInt(id)
- confirmed = self._checkBool(confirmed)
- factory = CaseAppointmentFactory()
- appointment = factory.loadById(id)
- if confirmed == 1:
- if appointment.delete():
- c.success_for = DELETE_APPOINT_NOTIFICATION_SUCCESS
- c.success_text = DELETE_APPOINT_NOTIFICATION_TEXT_SUCCESS
- c.url_ok = "/case/appointments/%s" % appointment.case_id
- return render('/casemanagement/dialogs/success_delete_appointment.mako')
- else:
- c.failed_for = DELETE_APPOINT_NOTIFICATION_FAILED
- c.failed_text = DELETE_APPOINT_NOTIFICATION_TEXT_FAILED
- c.url_ok = "/case/appointments/%s" % appointment.case_id
- return render('/casemanagement/dialogs/failed_delete_appointment.mako')
- else:
- c.context = "../main.mako"
- c.confirm_for = DELETE_APPOINT_CONFIRM
- c.question = DELETE_APPOINT_CONFIRM_TEXT
- c.url_yes = "/case/deleteAppointment/%s/1" % id
- c.url_no = "/case/appointments/%s" % appointment.case_id
- return render('/casemanagement/dialogs/confirm_delete_appointment.mako')
-
@checkRole('cm_ka')
def newAppointment(self, id):
id = self._checkInt(id)
More information about the Mpuls-commits
mailing list