Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace connection in bucket constructor. #987

Merged
merged 2 commits into from
Jul 20, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jul 13, 2015

Has #984 as diffbase.

Also updating storage.Batch to accept a client.

Introduced temporary hack to allow system-tests to continue passing. Implicit environment has still not been completely removed.

@dhermes dhermes added the api: storage Issues related to the Cloud Storage API. label Jul 13, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 13, 2015
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952.

Introduced temporary hack to allow system-tests to continue passing.
Implicit environment has still not been completely removed.
@dhermes dhermes force-pushed the replace-connection-in-bucket branch from 8b1ecb2 to 017346a Compare July 14, 2015 14:55
@@ -205,6 +205,6 @@ def get_items_from_response(self, response):
"""
for item in response.get('items', []):
name = item.get('name')
bucket = Bucket(name)
bucket = Bucket(None, name)

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor Author

dhermes commented Jul 15, 2015

@tseaver Any remaining issues?

@@ -78,7 +78,7 @@ def set_default_bucket(bucket=None):
bucket_name = os.getenv(_BUCKET_ENV_VAR_NAME)

if bucket_name is not None:
bucket = Bucket(bucket_name)
bucket = Bucket(None, name=bucket_name)

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Jul 20, 2015

We can merge this one to get to the next.

dhermes added a commit that referenced this pull request Jul 20, 2015
Replace connection in bucket constructor.
@dhermes dhermes merged commit 54bf64e into googleapis:master Jul 20, 2015
@dhermes dhermes deleted the replace-connection-in-bucket branch July 20, 2015 20:14
@dhermes dhermes mentioned this pull request Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants