summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--func/minion/modules/func_module.py37
1 files changed, 0 insertions, 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