コード例 #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())]
             }