Commit 1d4da128 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove path attribute from office:include elements to make valid OOo output.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25768 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b66c5a39
......@@ -408,6 +408,7 @@ class OOoTemplate(ZopePageTemplate):
extra_context.update(arg_dict)
request.other.update(arg_dict)
path = office_include.attrib['path']
del(office_include.attrib['path'])
new_path = replaceIncludes(path)
draw_object = Element('{%s}object' % xml_doc.nsmap.get('draw'))
draw_object.attrib.update({'{%s}href' % xml_doc.nsmap.get('xlink'): new_path})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment