scc_access/scc_access.py

changeset 18
a952c1b250a8
parent 16
ddaea4327bd5
child 19
2a6a9e95bd16
equal deleted inserted replaced
16:ddaea4327bd5 18:a952c1b250a8
106 if upload_submit.url == self.upload_url: 106 if upload_submit.url == self.upload_url:
107 measurement_id = False 107 measurement_id = False
108 logger.error("Uploaded file rejected! Try to upload manually to see the error.") 108 logger.error("Uploaded file rejected! Try to upload manually to see the error.")
109 else: 109 else:
110 measurement_id = re.findall(regex, upload_submit.text)[0] 110 measurement_id = re.findall(regex, upload_submit.text)[0]
111 logger.error("Successfully uploaded measurement with id %s." % measurement_id) 111 logger.info("Successfully uploaded measurement with id %s." % measurement_id)
112 112
113 return measurement_id 113 return measurement_id
114 114
115 def download_files(self, measurement_id, subdir, download_url): 115 def download_files(self, measurement_id, subdir, download_url):
116 """ Downloads some files from the download_url to the specified 116 """ Downloads some files from the download_url to the specified

mercurial