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 dumped (self, level): output = [] if self._control is not core.UNSET: output.append (u"control:\n%s" % utils.dumped_flags (self._control, SD_CONTROL, level)) if self._owner is not core.UNSET: output.append (u"owner: %s" % self.owner) if self._group is not core.UNSET: output.append (u"group: %s" % self.group) if self._dacl is not core.UNSET: output.append (u"dacl:\n%s" % self.dacl.dumped (level)) if self._sacl is not core.UNSET: output.append (u"sacl:\n%s" % self.sacl.dumped (level)) return utils.indented (u"\n".join (output), level)