@@ -361,7 +361,7 @@ def clear(self):
361361class BucketACL (ACL ):
362362 """An ACL specifically for a bucket."""
363363
364- _SUBKEY = 'acl'
364+ _URL_PATH_ELEM = 'acl'
365365
366366 def __init__ (self , bucket ):
367367 """
@@ -379,7 +379,7 @@ def reload(self):
379379 """
380380 self .entities .clear ()
381381
382- url_path = '%s/%s' % (self .bucket .path , self ._SUBKEY )
382+ url_path = '%s/%s' % (self .bucket .path , self ._URL_PATH_ELEM )
383383 found = self .bucket .connection .api_request (method = 'GET' , path = url_path )
384384 for entry in found ['items' ]:
385385 self .add_entity (self .entity_from_dict (entry ))
@@ -425,10 +425,10 @@ def save(self, acl=None):
425425 if save_to_backend :
426426 result = self .bucket .connection .api_request (
427427 method = 'PATCH' , path = self .bucket .path ,
428- data = {self ._SUBKEY : list (acl )},
428+ data = {self ._URL_PATH_ELEM : list (acl )},
429429 query_params = {'projection' : 'full' })
430430 self .entities .clear ()
431- for entry in result [self ._SUBKEY ]:
431+ for entry in result [self ._URL_PATH_ELEM ]:
432432 self .add_entity (self .entity_from_dict (entry ))
433433 self .loaded = True
434434
@@ -465,7 +465,7 @@ def clear(self):
465465class DefaultObjectACL (BucketACL ):
466466 """A class representing the default object ACL for a bucket."""
467467
468- _SUBKEY = 'defaultObjectAcl'
468+ _URL_PATH_ELEM = 'defaultObjectAcl'
469469
470470
471471class ObjectACL (ACL ):
0 commit comments