def run(self, target): ivk = Invoke(target) obj = ivk.instance() if not obj: return None if obj.__doc__: return obj.__doc__ return ''
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())] }