I converted nicks blog example to ndb now this line fails:
self.send_blob(file_info.blob, save_as=True)
with this error:
ValueError: Expected BlobInfo value for blob_key_or_info.
Rest of the class:
class FileDownloadHandler(blobstore_handlers.BlobstoreDownloadHandler):
def get(self, file_id):
file_info = models.FileInfo.get_by_id(long(file_id))
if not file_info or not file_info.blob:
self.error(404)
return
self.send_blob(file_info.blob)
#self.send_blob(file_info.blob, save_as=True)
Why did the result change?