def new_dispatch(*args): i = LooseVersion(release.major_version) < LooseVersion('8.0') and 1 or 0 if args[i] == 'run_tests': params = args[i + 1] admin_passwd = params[0] check_super(admin_passwd) params = params[1:] return run_tests(*params) return native_dispatch(*args)
def new_dispatch(*args): i = LooseVersion(release.major_version) < LooseVersion('8.0') and 1 or 0 method = args[i] if method in ('coverage_start', 'coverage_stop', 'check_quality_code', 'count_lines_of_code'): admin_passwd = args[i + 1][0] check_super(admin_passwd) return getattr(NewServices, method)() return native_dispatch(*args)
def check_super(self, passwd): return check_super(passwd)
def check_super(self, passwd): return check_super(passwd)