Exemple #1
0
 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('/')
Exemple #2
0
 def get(self, blob_key):
     blob_reader = blobstore.BlobReader(blob_key)
     row_dict = utils.readBlobCsv(blob_reader)
     self.write(json.dumps(row_dict))
Exemple #3
0
 def get(self, blob_key):
     blob_reader = blobstore.BlobReader(blob_key)
     parsed = utils.readBlobCsv(blob_reader)
     self.write(parsed)