Commit 902d7cee authored by Romain Courteaud's avatar Romain Courteaud

setAttribute method does not exist.

Thanks to Nicolas Delaby


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d4893462
......@@ -181,7 +181,7 @@ class OOoBuilder(Implicit):
document_element.setAttributeNodeNS(tal)
document_element.setAttributeNodeNS(i18n)
document_element.setAttributeNodeNS(metal)
document_element.setAttribute('tal:attributes', 'dummy python:request.RESPONSE.setHeader("Content-Type", "text/html;; charset=utf-8")')
document_element.setAttributeNS(None, 'tal:attributes', 'dummy python:request.RESPONSE.setHeader("Content-Type", "text/html;; charset=utf-8")')
from xml.dom.ext import PrettyPrint
PrettyPrint(document_element, output)
return output.getvalue()
......
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