def __getAclOperation(self): bucket_acp = Bucket.getBucketACP(bucket=self.utakaReq.bucket, user=self.utakaReq.user) if len(bucket_acp) == 0: '''bucket not found, throw error''' else: self.utakaReq.req.content_type = 'applicaton/xml' self.utakaReq.write(AcpXml.toXML(bucket_acp))
def __getAclOperation(self): object_acp = Object.getObjectACP(self.utakaReq.user, self.utakaReq.bucket, self.utakaReq.key) self.utakaReq.req.content_type = 'application/xml' self.utakaReq.write(AcpXml.toXML(object_acp))