(
        identifier,
        expiry,
        mimetype='text/plain',
        content_disposition=None,
        download_id=None,
        owner_ids=None)
return ref
Expose a blob object for download
Expose a blob object for download
Expose a blob object for download
def expose_blob_download(
        identifier,
        expiry,
        mimetype='text/plain',
        content_disposition=None,
        download_id=None,
        owner_ids=None):
    """
    Expose a blob object for download
    """
    # TODO add file parameter and refactor blob_db.put(...) into this method
    ref = BlobDownload(
        identifier,
        mimetype=mimetype,
        content_disposition=content_disposition,
        download_id=download_id,
        owner_ids=owner_ids,
    )
    ref.save(expiry)
    return ref
def expose_blob_download ( identifier , expiry , mimetype = 'text/plain' , content_disposition = None , download_id = None , owner_ids = None ) : # TODO add file parameter and refactor blob_db.put(...) into this method ref = BlobDownload ( identifier , mimetype = mimetype , content_disposition = content_disposition , download_id = download_id , owner_ids = owner_ids , ) ref . save ( expiry ) return ref