def load_methods(path, main_class, parent_class=None): methods = {} modules = load_modules(path, main_class, parent_class=parent_class) for x in modules.keys(): for method in dir(modules[x]): if is_public_valid_method(modules[x], method): methods["%s.%s" % (x, method)] = getattr(modules[x], method) return methods
def load_methods(path, main_class, parent_class=None): methods = {} modules = load_modules(path, main_class, parent_class=parent_class) for x in modules.keys(): for method in dir(modules[x]): if is_public_valid_method(modules[x], method): methods["%s.%s" % (x,method)]=getattr(modules[x], method) return methods
def __is_public_valid_method(self,attr): return is_public_valid_method(self, attr, blacklist=['register_rpc', 'register_method_args'])
def __is_public_valid_method(self,attr): return is_public_valid_method(self, attr, blacklist=['register_facts'])
def __is_public_valid_method(self, attr): return is_public_valid_method(self, attr, blacklist=['register_facts'])
def __is_public_valid_method(self, attr): return is_public_valid_method( self, attr, blacklist=['register_rpc', 'register_method_args'])