summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-02 19:29:23 +0300
committermakkalot <makkalot@gmail.com>2008-06-02 19:29:23 +0300
commit7388fc3e74711c5a9a788e96a02d7daa063ba9d4 (patch)
tree7bb869981ae01f5b0472e291794f0171d9ee6e6c /func
parentc1caf860b5bcf68ac3bd542f792626b115324566 (diff)
downloadthird_party-func-7388fc3e74711c5a9a788e96a02d7daa063ba9d4.tar.gz
third_party-func-7388fc3e74711c5a9a788e96a02d7daa063ba9d4.tar.xz
third_party-func-7388fc3e74711c5a9a788e96a02d7daa063ba9d4.zip
remove the old version of the get_method_arguments
Diffstat (limited to 'func')
-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