[Mpuls-commits] r1139 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 2 15:10:17 CET 2010
Author: torsten
Date: 2010-02-02 15:10:16 +0100 (Tue, 02 Feb 2010)
New Revision: 1139
Modified:
wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAppointmentAction):
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:08:59 UTC (rev 1138)
+++ wasko/branches/2.0/waskaweb/controllers/case.py 2010-02-02 14:10:16 UTC (rev 1139)
@@ -785,37 +785,6 @@
return formencode.htmlfill.render(unicode(form, 'utf-8'),
defaults=c.form_defaults)
- @checkRole(('cm_ka'))
- def newAppointmentAction(self):
- validator = CreateAppointmentForm()
- factory = CaseAppointmentFactory()
- c.form_errors = {}
- c.form_result = {}
- try:
- try:
- form_result = validator.to_python(request.params)
- # Create appointment
- appointment = factory.createNew(form_result.get('case_id'))
- appointment.setData(form_result)
- appointment.store()
- c.success_for = CREATE_APPOINT_NOTIFICATION_SUCCESS
- c.success_text = CREATE_APPOINT_NOTIFICATION_TEXT_SUCCESS
- c.url_ok = h.url_for(controller='/case',
- action='appointments',
- id=appointment.case_id)
-
- return render('/casemanagement/dialogs/success_create_appointment.mako')
- except formencode.Invalid, error:
- c.form_result = error.value
- c.form_errors = error.error_dict or {}
- form = render('/casemanagement/newAppointment.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