示例#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
 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)
示例#4
0
文件: _aces.py 项目: hashar/WAPT
 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)