def post(self): self.response.write('Chugging away...') upload_files = self.get_uploads('file') blob_info = upload_files[0] blob_reader = blobstore.BlobReader(str(blob_info.key())) row_dict = utils.readBlobCsv(blob_reader) ds = DataSeries(blob_key=str(blob_info.key()), json_data=json.dumps(row_dict), name=blob_info.filename) ds.put() self.redirect('/')
def get(self, blob_key): blob_reader = blobstore.BlobReader(blob_key) row_dict = utils.readBlobCsv(blob_reader) self.write(json.dumps(row_dict))
def get(self, blob_key): blob_reader = blobstore.BlobReader(blob_key) parsed = utils.readBlobCsv(blob_reader) self.write(parsed)