def GET(self, req): """ Handles GET Bucket acl and GET Object acl. """ resp = req.get_response(self.app) acl = getattr(resp, "%s_acl" % ("object" if req.is_object_request else "bucket")) resp = HTTPOk() resp.body = tostring(acl.elem()) return resp
def GET(self, req): """ Handles GET Bucket acl and GET Object acl. """ resp = req.get_response(self.app) acl = resp.object_acl if req.is_object_request else resp.bucket_acl resp = HTTPOk() resp.body = tostring(acl.elem()) return resp
def GET(self, req): """ Handles GET Bucket acl and GET Object acl. """ resp = req.get_response(self.app, 'HEAD', permission='READ_ACP') acl = getattr(resp, '%s_acl' % ('object' if req.is_object_request else 'bucket')) resp = HTTPOk() resp.body = tostring(acl.elem()) return resp
def GET(self, req): """ Handles GET Bucket acl and GET Object acl. """ resp = req.get_response(self.app, 'HEAD', permission='READ_ACP') acl = getattr( resp, '%s_acl' % ('object' if req.is_object_request else 'bucket')) resp = HTTPOk() resp.body = tostring(acl.elem()) return resp