[Erp5-report] r23934 - /erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 1 15:14:01 CEST 2008


Author: nicolas
Date: Wed Oct  1 15:13:50 2008
New Revision: 23934

URL: http://svn.erp5.org?rev=23934&view=rev
Log:
We should not change data from XML, if there is extra \n, it could be deliberate

Modified:
    erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py

Modified: erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py?rev=23934&r1=23933&r2=23934&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py (original)
+++ erp5/trunk/products/ERP5SyncML/Conduit/ERP5Conduit.py Wed Oct  1 15:13:50 2008
@@ -886,7 +886,8 @@
     """
     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
-    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_type in self.list_type_list:
@@ -894,7 +895,7 @@
       if data_type in self.text_type_list:
         data = ''
       return data
-    data = data.replace('\n','')
+    #data = data.replace('\n','')
     if type(data) is type(u"a"):
       data = data.encode(self.getEncoding())
     if data == 'None':




More information about the Erp5-report mailing list