def dumped (self, level): output = [] output.append (u"trustee: %s" % self.trustee) output.append (u"access: %s" % utils.mask_as_string (self.access)) output.append (u"type: %s" % ACE_TYPE.name_from_value (self.type)) if self.flags: output.append (u"flags:\n%s" % utils.dumped_flags (self.flags, ACE_FLAG, level)) return utils.dumped (u"\n".join (output), level)
def dumped(self, level): output = [] output.append(u"trustee: %s" % self.trustee) output.append(u"access: %s" % utils.mask_as_string(self.access)) output.append(u"type: %s" % ACE_TYPE.name_from_value(self.type)) if self.flags: output.append(u"flags:\n%s" % utils.dumped_flags(self.flags, ACE_FLAG, level)) return utils.dumped(u"\n".join(output), level)
def as_string(self): type = ACE_TYPE.name_from_value(self.type) flags = " | ".join(ACE_FLAG.names_from_value(self.flags)) access = utils.mask_as_string(self.access) return u"%s %s %s %s" % (self.trustee, access, flags, type)
def as_string (self): type = ACE_TYPE.name_from_value (self.type) flags = " | ".join (ACE_FLAG.names_from_value (self.flags)) access = utils.mask_as_string (self.access) return u"%s %s %s %s" % (self.trustee, access, flags, type)