Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
 def __is_public_valid_method(self,attr):
     return is_public_valid_method(self, attr, blacklist=['register_rpc', 'register_method_args'])
Ejemplo n.º 4
0
 def __is_public_valid_method(self,attr):
     return is_public_valid_method(self, attr, blacklist=['register_facts'])
Ejemplo n.º 5
0
 def __is_public_valid_method(self, attr):
     return is_public_valid_method(self, attr, blacklist=['register_facts'])
Ejemplo n.º 6
0
 def __is_public_valid_method(self, attr):
     return is_public_valid_method(
         self, attr, blacklist=['register_rpc', 'register_method_args'])