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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 15:40:34 CET 2010


Author: torsten
Date: 2010-02-02 15:40:30 +0100 (Tue, 02 Feb 2010)
New Revision: 1145

Modified:
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.editAppointment):
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-02 14:39:20 UTC (rev 1144)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 14:40:30 UTC (rev 1145)
@@ -694,30 +694,6 @@
         return render('/casemanagement/showAppointment.mako')
 
     @checkRole(('cm_ka'))
-    def editAppointment(self, id):
-        id = self._checkInt(id)
-        factory = CaseAppointmentFactory()
-        app = factory.loadById(id)
-
-        c.form_result = {'start_date': dd_mm_YYYY(app.start_date),
-                         'start_time': HH_MM(app.start_date),
-                         'end_date': dd_mm_YYYY(app.end_date),
-                         'end_time': HH_MM(app.end_date),
-                         'title': app.title,
-                         'id': app.id,
-                         'case_id': app.case_id,
-                         'type': app.type,
-                         'description': app.description}
-
-        c.form_errors = {}
-        c.appointment = app
-        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)
-
-    @checkRole(('cm_ka'))
     def editAppointmentAction(self):
         validator = CreateAppointmentForm()
         factory = CaseAppointmentFactory()



More information about the Mpuls-commits mailing list