Commit 18ca2e46 authored by Sebastien Robin's avatar Sebastien Robin

very small fix, replace 3 > by 3>=


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@924 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99b27d3f
......@@ -572,7 +572,7 @@ class XMLSyncUtilsMixin(SyncCode, ActiveObject):
signature = Signature(gid=object_gid,id=object.getId())
signature.setTempXML(xml_object)
if xml_string.count('\n') > self.MAX_LINES:
if xml_string.find('--') > 0: # This make comment fails, so we need to replace
if xml_string.find('--') >= 0: # This make comment fails, so we need to replace
xml_string = xml_string.replace('--','@-@@-@')
more_data=1
i = 0
......@@ -608,7 +608,7 @@ class XMLSyncUtilsMixin(SyncCode, ActiveObject):
xml_mapping=domain.xml_mapping,
old_xml=signature.getXML())
if xml_string.count('\n') > self.MAX_LINES:
if xml_string.find('--') > 0: # This make comment fails, so we need to replace
if xml_string.find('--') >= 0: # This make comment fails, so we need to replace
xml_string = xml_string.replace('--','@-@@-@')
i = 0
more_data=1
......@@ -666,7 +666,7 @@ class XMLSyncUtilsMixin(SyncCode, ActiveObject):
signature.setPartialXML(rest_string)
xml_string = short_string
status = self.PARTIAL
if xml_string.find('--') > 0: # This make comment fails, so we need to replace
if xml_string.find('--') >= 0: # This make comment fails, so we need to replace
xml_string = xml_string.replace('--','@-@@-@')
xml_string = '<!--' + xml_string + '-->'
signature.setStatus(status)
......
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