create_doc = self.generators[mime_type]
odt = etree.tostring(create_doc(rml_dom, rml_parser.localcontext),
encoding='utf-8', xml_declaration=True)
- sxw_z = zipfile.ZipFile(sxw_io, mode='a')
- sxw_z.writestr('content.xml', odt)
- sxw_z.writestr('meta.xml', meta)
-
+
- sxw_contents = {'content.xml':odt, 'meta.xml':meta, 'mimetype': mime_type}
++ sxw_contents = {'content.xml':odt, 'meta.xml':meta}
+
if report_xml.header:
#Add corporate header/footer
rml_file = tools.file_open(os.path.join('base', 'report', 'corporate_%s_header.xml' % report_type))