Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make Bucket/Blob/_PropertyMixin have "future" functionality #775

Closed
@dhermes

Description

@dhermes

This is relating to a discussion @tseaver and I just had about enabling GET in batches.

Something like

with storage.Batch():
    bucket = storage.get_bucket('foo')
    print bucket.cors
    blob = storage.Blob('bar', bucket=bucket, eager=True)  # See #761 about eager

is not possible because the actual GET which retrieves the bucket happens on the __exit__ of the batch.


We could allow _PropertyMixin objects to act as a future by setting a property (e.g. bucket._is_future = True) and then making getters and setters fail when _is_future == True.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions