Commit bc33f7eb authored by Nicolas Delaby's avatar Nicolas Delaby

Use instanciated parser to be more consistent

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30173 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bee7851d
...@@ -80,9 +80,9 @@ class ERP5DocumentConduit(ERP5Conduit): ...@@ -80,9 +80,9 @@ class ERP5DocumentConduit(ERP5Conduit):
simulate=None, reset=None): simulate=None, reset=None):
data_change = {} data_change = {}
if previous_xml is not None: if previous_xml is not None:
previous_xml = etree.XML(previous_xml) previous_xml = etree.XML(previous_xml, parser)
else: else:
previous_xml = etree.XML(object.asXML()) previous_xml = etree.XML(object.asXML(), parser)
from copy import deepcopy from copy import deepcopy
xml_previous = deepcopy(previous_xml) xml_previous = deepcopy(previous_xml)
#retrieve new data #retrieve new data
......
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