コード例 #1
0
ファイル: _aces.py プロジェクト: hashar/WAPT
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: security.py プロジェクト: opritche/winsys
 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)
コード例 #4
0
ファイル: security.py プロジェクト: ssamson-tis/WAPT
 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)