示例#1
0
 def run(self, target):
     ivk = Invoke(target)
     obj = ivk.instance()
     if not obj:
         return None
     if obj.__doc__:
         return obj.__doc__
     return ''
示例#2
0
文件: doc.py 项目: imace/nnt
 def run(self, target):        
     ivk = Invoke(target)        
     obj = ivk.instance()
     if not obj:
         return None
     if obj.__doc__:
         return obj.__doc__
     return ''
示例#3
0
 def run(self, target):
     ivk = Invoke(target)        
     obj = ivk.instance()
     if not obj:
         return None
     right = obj.right
     usr = user.User.FindById(right.uid)
     grp = group.Group.FindById(right.gid)        
     return {
             'user': usr.name,
             'group': grp.name,
             'right': [right.is_execute(right.user()),
                       right.is_execute(right.group()),
                       right.is_execute(right.other())]
             }