Example #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
Example #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
Example #3
0
 def __is_public_valid_method(self,attr):
     return is_public_valid_method(self, attr, blacklist=['register_rpc', 'register_method_args'])
Example #4
0
 def __is_public_valid_method(self,attr):
     return is_public_valid_method(self, attr, blacklist=['register_facts'])
Example #5
0
 def __is_public_valid_method(self, attr):
     return is_public_valid_method(self, attr, blacklist=['register_facts'])
Example #6
0
 def __is_public_valid_method(self, attr):
     return is_public_valid_method(
         self, attr, blacklist=['register_rpc', 'register_method_args'])