

def add_email_grant(self, permission, email_address):
    "\n        Convenience method that provides a quick way to add an email grant to a\n        key. This method retrieves the current ACL, creates a new grant based on\n        the parameters passed in, adds that grant to the ACL and then PUT's the\n        new ACL back to GS.\n\n        :type permission: string\n        :param permission: The permission being granted. Should be one of:\n            READ|FULL_CONTROL\n            See http://code.google.com/apis/storage/docs/developer-guide.html#authorization\n            for more details on permissions.\n\n        :type email_address: string\n        :param email_address: The email address associated with the Google\n                              account to which you are granting the permission.\n        "
    acl = self.get_acl()
    acl.add_email_grant(permission, email_address)
    self.set_acl(acl)

dataset/ETHPy150Open yyuu/botornado/boto/gs/key.py Key.add_email_grant/original