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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 6 13:53:06 CEST 2011


Author: ludwig
Date: 2011-10-06 13:53:05 +0200 (Thu, 06 Oct 2011)
New Revision: 5410

Modified:
   base/trunk/mpulsweb/controllers/formularpage.py
Log:
Issue 2188 Uses ViewRenderer again, so that the formular page is rendered
correct.


Modified: base/trunk/mpulsweb/controllers/formularpage.py
===================================================================
--- base/trunk/mpulsweb/controllers/formularpage.py	2011-10-06 09:39:50 UTC (rev 5409)
+++ base/trunk/mpulsweb/controllers/formularpage.py	2011-10-06 11:53:05 UTC (rev 5410)
@@ -20,7 +20,8 @@
 from mpulsweb.lib.helpers import url_for, literal
 from mpulsweb.model.phase import PhaseFactory, PC_MANUAL, PC_FULLAUTO
 
-from mpulsweb.lib.formedrenderer import ViewPrintRenderer, UrlFactory
+from mpulsweb.lib.formedrenderer import ViewRenderer,ViewPrintRenderer, \
+        UrlFactory
 
 
 log = logging.getLogger(__name__)
@@ -79,7 +80,7 @@
         errors, defaults = convert_error_items(page.getErrors())
         formdata = TreeFormData(instance_tree, shadow=defaults, errors=errors,
                                 node=page)
-        renderer = ViewPrintRenderer(formdata, page.getMeta(), url_factory,
+        renderer = ViewRenderer(formdata, page.getMeta(), url_factory,
                                 **renderer_kw_args)
 
     navigation_item = session['navigation.tree'].getTreeItem(id)



More information about the Mpuls-commits mailing list