Commit 74135d02 authored by Nicolas Delaby's avatar Nicolas Delaby

Do not set object_path_list on subscription when is one way from server,...

Do not set object_path_list on subscription when is one way from server, because has not wish side effects and is time comsuption

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16857 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9fa1c6a
......@@ -774,7 +774,10 @@ class XMLSyncUtilsMixin(SyncCode):
result = {'finished':1}
if isinstance(remote_xml, str) or isinstance(remote_xml, unicode):
remote_xml = Parse(remote_xml)
if subscriber.getRemainingObjectPathList() is None:
if domain.isOneWayFromServer():
#Do not set object_path_list, subscriber send nothing
subscriber.setRemainingObjectPathList([])
elif subscriber.getRemainingObjectPathList() is None:
object_list = domain.getObjectList()
object_path_list = [x.getPhysicalPath() for x in object_list]
subscriber.setRemainingObjectPathList(object_path_list)
......
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