Fix native flag

pull/744/head
Laurent Mignon 2016-10-04 13:52:29 +02:00 committed by Alexandre D. Díaz
parent 2389ebffe0
commit ab8e42c6a9
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ def py3o_report_extender(report_xml_id=None):
global _extender_functions global _extender_functions
def fct1(fct): def fct1(fct):
_extender_functions.setdefault(report_xml_id,[]).append(fct) _extender_functions.setdefault(report_xml_id, []).append(fct)
return fct return fct
return fct1 return fct1
@ -152,7 +152,7 @@ class Py3oParser(report_sxw):
input = data_struct.render(localcontext) input = data_struct.render(localcontext)
filetype = report_xml.py3o_fusion_filetype filetype = report_xml.py3o_fusion_filetype
is_native = Formats().get_format(filetype) is_native = Formats().get_format(filetype).native
if is_native: if is_native:
res = input res = input
else: # Call py3o.server to render the template in the desired format else: # Call py3o.server to render the template in the desired format