Commit 59c51f0d authored by Nicolas Delaby's avatar Nicolas Delaby

Add missing version attribute on root Element

parent 394a57e9
...@@ -440,6 +440,9 @@ class ERP5Diff: ...@@ -440,6 +440,9 @@ class ERP5Diff:
if self._result is not None: if self._result is not None:
self._result.close() self._result.close()
self._result = impl.createDocument(self._ns, 'xupdate:modifications', None) self._result = impl.createDocument(self._ns, 'xupdate:modifications', None)
attr_version = self._result.createAttributeNS(self._ns, 'version')
attr_version.value = '1.0'
self._result.documentElement.setAttributeNodeNS(attr_version)
if self._testElements(old_root_element, new_root_element): if self._testElements(old_root_element, new_root_element):
self._testAttributes(old_root_element, new_root_element, '/') self._testAttributes(old_root_element, new_root_element, '/')
self._compareChildNodes(old_root_element, new_root_element, '/') self._compareChildNodes(old_root_element, new_root_element, '/')
......
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