Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: third_party/gsutil/boto/boto/s3/acl.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/boto/boto/s3/__init__.py ('k') | third_party/gsutil/boto/boto/s3/bucket.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/boto/boto/s3/acl.py
diff --git a/third_party/gsutil/20110627/boto/boto/s3/acl.py b/third_party/gsutil/boto/boto/s3/acl.py
similarity index 97%
rename from third_party/gsutil/20110627/boto/boto/s3/acl.py
rename to third_party/gsutil/boto/boto/s3/acl.py
index 648db79fcab9a34fc94fa53c740676c1be60b302..a7bca8c97c190e896ebaf0ab837add172ced3c89 100644
--- a/third_party/gsutil/20110627/boto/boto/s3/acl.py
+++ b/third_party/gsutil/boto/boto/s3/acl.py
@@ -24,7 +24,8 @@ from boto.s3.user import User
CannedACLStrings = ['private', 'public-read',
'public-read-write', 'authenticated-read',
- 'bucket-owner-read', 'bucket-owner-full-control']
+ 'bucket-owner-read', 'bucket-owner-full-control',
+ 'log-delivery-write']
class Policy:
@@ -87,8 +88,8 @@ class ACL:
email_address=email_address)
self.grants.append(grant)
- def add_user_grant(self, permission, user_id):
- grant = Grant(permission=permission, type='CanonicalUser', id=user_id)
+ def add_user_grant(self, permission, user_id, display_name=None):
+ grant = Grant(permission=permission, type='CanonicalUser', id=user_id, display_name=display_name)
self.grants.append(grant)
def startElement(self, name, attrs, connection):
« no previous file with comments | « third_party/gsutil/boto/boto/s3/__init__.py ('k') | third_party/gsutil/boto/boto/s3/bucket.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698