Commit d082162f authored by Sebastien Robin's avatar Sebastien Robin

check if the url already contains readResponse


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@934 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d157542
......@@ -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:
......
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