[ADD] adding localcontext support
authornicolas.bessi@camptocamp.com <>
Mon, 11 Oct 2010 11:18:17 +0000 (13:18 +0200)
committernicolas.bessi@camptocamp.com <>
Mon, 11 Oct 2010 11:18:17 +0000 (13:18 +0200)
bzr revid: nicolas.bessi@camptocamp.com-20101011111817-e6ptb19v25od35f2

addons/report_webkit/webkit_report.py

index d02251c..912150f 100644 (file)
@@ -273,15 +273,11 @@ class WebKitParser(report_sxw):
         body_mako_tpl = Template(template ,input_encoding='utf-8')
         helper = WebKitHelper(cursor, uid, report_xml.id, context)
         html = body_mako_tpl.render(
-                                    objects=self.parser_instance.localcontext['objects'], 
-                                    company=company, 
-                                    time=time, 
-                                    helper=helper, 
-                                    css=css,
-                                    formatLang=self.formatLang,
-                                    setLang=self.setLang,
-                                    _=self.translate_call,
-                                    )
+                                        helper=helper, 
+                                        css=css,
+                                        _=self.translate_call,
+                                        **self.parser_instance.localcontext
+                                        )
         head_mako_tpl = Template(header, input_encoding='utf-8')
         head = head_mako_tpl.render(
                                     company=company,