[apycotlib] build "sane" URL for log file upload (closes #3886463)
authorDavid Douard <david.douard@logilab.fr>
Sat, 24 May 2014 22:35:00 +0200
changeset 1526 6f670e3273be
parent 1525 1e985a602687
child 1527 023c979bf201
[apycotlib] build "sane" URL for log file upload (closes #3886463)
_apycotlib/writer.py
--- a/_apycotlib/writer.py	Fri May 23 11:00:46 2014 +0200
+++ b/_apycotlib/writer.py	Sat May 24 22:35:00 2014 +0200
@@ -157,7 +157,7 @@
                                             data_name=u'log_file.txt',
                                             data_encoding='utf-8')[0]
                 self._log_file_eid = data['eid']
-            self.cnxh.http_post(url=self.instance_url() + '/narval-file-append',
+            self.cnxh.http_post(url=self.instance_url() + 'narval-file-append',
                                 files=files,
                                 eid=self._log_file_eid)
 
@@ -231,7 +231,7 @@
                                     __cwrel__='reverse_execution_archive',
                                     data_name=archive,
                                     data_format=ARCHIVE_MIME_TYPE)[0]
-                self.cnxh.http_post(url=self.instance_url() + '/narval-file-append', files=files, eid=data['eid'])
+                self.cnxh.http_post(url=self.instance_url() + 'narval-file-append', files=files, eid=data['eid'])
             except:
                 self.error('while archiving execution directory', tb=True)
             finally: