def get(self, filename): export = ExportTask.query(UserImage.filename == filename).get() if not export: self.error(404) else: self.send_blob(filestore.get_blob_key(export.filename))
def get(self, filename): image = UserImage.query(UserImage.filename == filename).get() if self.request.get('fullsize'): key = image.original_size_key else: key = image.serving_size_key if not image: self.error(404) else: self.send_blob(filestore.get_blob_key(key))