[Mpuls-commits] r3854 - waska/trunk/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Oct 1 16:04:07 CEST 2010
Author: torsten
Date: 2010-10-01 16:04:07 +0200 (Fri, 01 Oct 2010)
New Revision: 3854
Modified:
waska/trunk/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.print_AidplanStatement): Issue1143: Added new controller function to render the aidplan-statement.
Modified: waska/trunk/waskaweb/controllers/case.py
===================================================================
--- waska/trunk/waskaweb/controllers/case.py 2010-10-01 14:03:11 UTC (rev 3853)
+++ waska/trunk/waskaweb/controllers/case.py 2010-10-01 14:04:07 UTC (rev 3854)
@@ -40,6 +40,7 @@
from mpulsweb.model.statement import PrivacyStatement
from mpulsweb.controllers.formularpage import convert2dic
+from mpulsweb.controllers.navigation import NavigationController
from mpulsweb.controllers.case import CaseController as MpulsCaseController
from waskaweb.lib.validators import NewCaseForm
@@ -99,4 +100,12 @@
return self.select(str(case.id))
+ def print_AidplanStatement(self, id):
+ # Call navigation controller which will trigger rendering the right
+ # formularpage. Content of the formularpage (c.formular) will be user
+ # to render the aidplan.
+ NavigationController().select_branch('rg_unterstuetzungsangebote:%s' % id)
+ c.case = self.init_case(id)
+ return render('/casemanagement/aidplan.mako')
+
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list