MCPcopy Create free account
hub / github.com/s3tools/s3cmd / set_accesslog_acl

Method set_accesslog_acl

S3/S3.py:1513–1519  ·  view source on GitHub ↗
(self, uri)

Source from the content-addressed store, hash-verified

1511 return accesslog
1512
1513 def set_accesslog_acl(self, uri):
1514 acl = self.get_acl(uri)
1515 debug("Current ACL(%s): %s" % (uri.uri(), acl))
1516 acl.appendGrantee(GranteeLogDelivery("READ_ACP"))
1517 acl.appendGrantee(GranteeLogDelivery("WRITE"))
1518 debug("Updated ACL(%s): %s" % (uri.uri(), acl))
1519 self.set_acl(uri, acl)
1520
1521 def set_accesslog(self, uri, enable, log_target_prefix_uri = None, acl_public = False):
1522 accesslog = AccessLog()

Callers 1

set_accesslogMethod · 0.95

Calls 5

get_aclMethod · 0.95
set_aclMethod · 0.95
GranteeLogDeliveryClass · 0.90
appendGranteeMethod · 0.80
uriMethod · 0.45

Tested by

no test coverage detected