scc_access/scc_access.py

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

mercurial