From 74135d02284ce536fe8ace3e98759afe840e2605 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 5 Oct 2007 11:50:19 +0000 Subject: [PATCH] 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 --- product/ERP5SyncML/XMLSyncUtils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5SyncML/XMLSyncUtils.py b/product/ERP5SyncML/XMLSyncUtils.py index bb19782ff4..2b7e0f1426 100644 --- a/product/ERP5SyncML/XMLSyncUtils.py +++ b/product/ERP5SyncML/XMLSyncUtils.py @@ -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) -- 2.30.9