

def add_user_grant(self, permission, user_id):
    "\n        Convenience method that provides a quick way to add a canonical user\n        grant to a key. This method retrieves the current ACL, creates a new\n        grant based on the parameters passed in, adds that grant to the ACL and\n        then PUT's the 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 user_id: string\n        :param user_id: The canonical user id associated with the GS account to\n             which you are granting the permission.\n        "
    acl = self.get_acl()
    acl.add_user_grant(permission, user_id)
    self.set_acl(acl)

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