Commit cc1e236e authored by Nicolas Delaby's avatar Nicolas Delaby

We should not change data from XML, if there is extra \n, it could be deliberate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23934 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29ea5a22
...@@ -886,7 +886,8 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -886,7 +886,8 @@ class ERP5Conduit(XMLSyncUtilsMixin):
""" """
It is possible that the xml change the value, for example It is possible that the xml change the value, for example
there is some too much '\n' and some spaces. We have to do some extra there is some too much '\n' and some spaces. We have to do some extra
things so that we convert correctly the vlalue things so that we convert correctly the value
XXXNicolas: I'm totally disagree with, so i comment this code
""" """
if data is None: if data is None:
if data_type in self.list_type_list: if data_type in self.list_type_list:
...@@ -894,7 +895,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -894,7 +895,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
if data_type in self.text_type_list: if data_type in self.text_type_list:
data = '' data = ''
return data return data
data = data.replace('\n','') #data = data.replace('\n','')
if type(data) is type(u"a"): if type(data) is type(u"a"):
data = data.encode(self.getEncoding()) data = data.encode(self.getEncoding())
if data == 'None': if data == 'None':
......
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