From 7388fc3e74711c5a9a788e96a02d7daa063ba9d4 Mon Sep 17 00:00:00 2001 From: makkalot Date: Mon, 2 Jun 2008 19:29:23 +0300 Subject: remove the old version of the get_method_arguments --- func/minion/modules/func_module.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py index 5c9eb03..cfd7438 100644 --- a/func/minion/modules/func_module.py +++ b/func/minion/modules/func_module.py @@ -120,40 +120,3 @@ class FuncModule(object): # to know they didnt implement it return {} - def __is_all_args_registered(self,name): - """ - Checks if module writer has made some mistakes about - argument registering - - @param name: the name of the method with arguments registered in it - @retun : dict(name:[arg1,arg2...]) or {} - """ - #FIXME tobe rewritten - if name in self.__base_methods.keys(): - return {} - - #tests showed that sometimes happens - if not hasattr(self,name): - return {} - - if not self.__is_public_valid_method(name): - return {} - - arg_names = inspect.getargspec(getattr(self,name)) - #arg_names[0] is argument names - #arg_names[1] is *arg - #arg_names[2] is **kwarg - #arg_names[3] are defaults - - name_dict =[other_args for other_args in arg_names[1:3] if other_args] - arg_names = arg_names[0] or [] - - #if we have self lets remove it - for rem in arg_names: - if rem=="self": - arg_names.remove(rem) - break - - final_dict={} - final_dict[name]=arg_names+name_dict - return final_dict -- cgit