From d082162fd1b14ca8908cb10563f16da75e9f0eb1 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Fri, 28 May 2004 08:35:07 +0000 Subject: [PATCH] check if the url already contains readResponse git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@934 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/SynchronizationTool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5SyncML/SynchronizationTool.py b/product/ERP5SyncML/SynchronizationTool.py index d3d6fa18a2..b2d6391f5d 100755 --- a/product/ERP5SyncML/SynchronizationTool.py +++ b/product/ERP5SyncML/SynchronizationTool.py @@ -695,7 +695,8 @@ class SynchronizationTool( UniqueObject, SimpleItem, urllib2.install_opener(opener) to_encode = {'text':xml,'sync_id':sync_id} encoded = urllib.urlencode(to_encode) - to_url = to_url + '/portal_synchronizations/readResponse' + if to_url.find('readResponse')<0: + to_url = to_url + '/portal_synchronizations/readResponse' request = urllib2.Request(url=to_url,data=encoded) #result = urllib2.urlopen(request).read() try: -- 2.30.9