[Mpuls-commits] r5839 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 1 14:01:34 CET 2012


Author: ludwig
Date: 2012-03-01 14:01:34 +0100 (Thu, 01 Mar 2012)
New Revision: 5839

Modified:
   base/trunk/mpulsweb/controllers/case.py
Log:
Issue 2930: Add needed phases into the context of printAll.


Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2012-03-01 12:01:42 UTC (rev 5838)
+++ base/trunk/mpulsweb/controllers/case.py	2012-03-01 13:01:34 UTC (rev 5839)
@@ -27,6 +27,7 @@
 from mpulsweb.model.logbook import LogbookEntry
 from mpulsweb.model.statement import PrivacyStatement
 from mpulsweb.model.agencysettings import Agency
+from mpulsweb.model.phase import PhaseFactory
 
 from mpulsweb.controllers.formularpage import get_rendered_page
 from mpulsweb.controllers.case_bundle import build_case_list
@@ -517,6 +518,7 @@
         out = []
         case = self._loadCase(id, read_only=True)
         c.case = case
+        c.phases = PhaseFactory().load(id)
         render_mode = session['render_mode']
         session['render_mode'] = 'ro'
         session.save()



More information about the Mpuls-commits mailing list