From 994dc716d81b46086a7681f60229fa01dfcee715 Mon Sep 17 00:00:00 2001 From: Laurent Mignon Date: Tue, 4 Oct 2016 13:52:29 +0200 Subject: [PATCH] Fix native flag --- report_py3o/py3o_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_py3o/py3o_parser.py b/report_py3o/py3o_parser.py index 2acc68bd..f3e9c687 100644 --- a/report_py3o/py3o_parser.py +++ b/report_py3o/py3o_parser.py @@ -43,7 +43,7 @@ def py3o_report_extender(report_xml_id=None): global _extender_functions def fct1(fct): - _extender_functions.setdefault(report_xml_id,[]).append(fct) + _extender_functions.setdefault(report_xml_id, []).append(fct) return fct return fct1 @@ -152,7 +152,7 @@ class Py3oParser(report_sxw): input = data_struct.render(localcontext) filetype = report_xml.py3o_fusion_filetype - is_native = Formats().get_format(filetype) + is_native = Formats().get_format(filetype).native if is_native: res = input else: # Call py3o.server to render the template in the desired format