Commit 9bd0cc05 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

convert to str to avoid an error in zipfile.py.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15386 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ccf84868
......@@ -418,6 +418,8 @@ xmlns:config="http://openoffice.org/2001/config" office:version="1.0">
# And render page template
doc_xml = ZopePageTemplate.pt_render(self, source=source, extra_context=extra_context)
if isinstance(doc_xml, unicode):
doc_xml = doc_xml.encode('utf-8')
# Replace the includes
(doc_xml,attachments_dict) = self.renderIncludes(here, doc_xml)
......
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