[views] Drop no more necessary statement ordering
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Feb 2017 16:26:16 +0100
changeset 78 66d9ef28b50a
parent 77 f148546ee04f
child 79 08fb3f03dd60
[views] Drop no more necessary statement ordering we have no reason anymore to render the view before retrieving the base context.
views/templates.py
--- a/views/templates.py	Fri Feb 03 16:25:45 2017 +0100
+++ b/views/templates.py	Fri Feb 03 16:26:16 2017 +0100
@@ -77,13 +77,11 @@
                 component.render(w=w)
         breadcrumbs = stream.getvalue()
 
-        page_content = view.render()
-
         ctx = self.base_context()
         url = self._cw.build_url
         ctx.update({
             'title': view.page_title(),
-            'page_content': page_content,
+            'page_content': view.render(),
             'breadcrumbs': breadcrumbs,
             'right_header_component': right_header_component,
             'left_boxes': left_boxes_html,