Index: boto/s3/acl.py |
diff --git a/boto/s3/acl.py b/boto/s3/acl.py |
index 264049912e3bb3fd1ffb34d4d6d4706974642fd1..60396834c43b172b9e725da1fcc12eb6ff163f77 100644 |
--- a/boto/s3/acl.py |
+++ b/boto/s3/acl.py |
@@ -44,7 +44,7 @@ class Policy: |
elif g.type == 'Group': |
u = g.uri |
else: |
- u = g.email |
+ u = g.email_address |
grants.append("%s = %s" % (u, g.permission)) |
return "<Policy: %s>" % ", ".join(grants) |
@@ -87,8 +87,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): |