[Mpuls-commits] r1124 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 2 12:14:50 CET 2010
Author: torsten
Date: 2010-02-02 12:14:47 +0100 (Tue, 02 Feb 2010)
New Revision: 1124
Modified:
wasko/branches/2.0/waskaweb/controllers/caseappointment.py
Log:
* waskaweb/controllers/caseappointment.py
(CaseappointmentController.overview): New. Moved from controllers.case
Modified: wasko/branches/2.0/waskaweb/controllers/caseappointment.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/caseappointment.py 2010-02-02 11:04:34 UTC (rev 1123)
+++ wasko/branches/2.0/waskaweb/controllers/caseappointment.py 2010-02-02 11:14:47 UTC (rev 1124)
@@ -3,14 +3,21 @@
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
+from waskaweb.lib.security import checkRole
from waskaweb.lib.base import BaseController, render
+from waskaweb.model.appointment import CaseAppointmentOverview, \
+ CaseAppointmentFactory, CaseReminderOverview
log = logging.getLogger(__name__)
class CaseappointmentController(BaseController):
- def index(self):
- # Return a rendered template
- #return render('/caseappointment.mako')
- # or, return a response
- return 'Hello World'
+ def index(self, id):
+ return self.overview(id)
+
+ @checkRole(('admin_ka', 'cm_ka'))
+ def overview(self, id):
+ id = self._checkInt(id)
+ c.remindlist = CaseReminderOverview(id)
+ c.appointmentlist = CaseAppointmentOverview(id)
+ return render('/casemanagement/appointments.mako')
More information about the Mpuls-commits
mailing list