[Mpuls-commits] r1147 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 2 15:44:51 CET 2010
Author: torsten
Date: 2010-02-02 15:44:49 +0100 (Tue, 02 Feb 2010)
New Revision: 1147
Modified:
wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.editAppointmentAction): 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 14:43:18 UTC (rev 1146)
+++ wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-02 14:44:49 UTC (rev 1147)
@@ -693,38 +693,6 @@
c.appointment = app
return render('/casemanagement/showAppointment.mako')
- @checkRole(('cm_ka'))
- def editAppointmentAction(self):
- validator = CreateAppointmentForm()
- factory = CaseAppointmentFactory()
- c.form_errors = {}
- c.form_result = {}
- try:
- try:
- form_result = validator.to_python(request.params)
- # Load appointment and set data
- appointment = factory.loadById(form_result.get('id'))
- appointment.setData(form_result)
- appointment.store()
- c.success_for = EDIT_APPOINT_NOTIFICATION_SUCCESS
- c.success_text = EDIT_APPOINT_NOTIFICATION_TEXT_SUCCESS
- c.url_ok = h.url_for(controller='/case',
- action='appointments',
- id=appointment.case_id)
-
- return render('/casemanagement/dialogs/success_edit_appointment.mako')
- except formencode.Invalid, error:
- c.form_result = error.value
- c.form_errors = error.error_dict or {}
- c.appointment = factory.loadById(c.form_result.get('id'))
- form = render('/casemanagement/editAppointment.mako')
- return formencode.htmlfill.render(unicode(form, 'utf-8'),
- defaults=c.form_result,
- auto_insert_errors=False,
- errors=c.form_errors)
- except:
- return render('/tests/trace.mako')
-
@checkRole('cm_ka')
def markForDelete(self, id, confirmed):
id = self._checkInt(id)
More information about the Mpuls-commits
mailing list