diff options
author | makkalot <makkalot@gmail.com> | 2008-05-27 14:39:12 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-05-27 14:39:12 +0300 |
commit | e3c15b13bf30494451170fd69bfc227272f8eab1 (patch) | |
tree | 8f5ec81eb6981314d2b4136e221b54495844faba /func/minion | |
parent | d50ecd9085106d753232ceb54ba41155775cdd67 (diff) | |
download | third_party-func-e3c15b13bf30494451170fd69bfc227272f8eab1.tar.gz third_party-func-e3c15b13bf30494451170fd69bfc227272f8eab1.tar.xz third_party-func-e3c15b13bf30494451170fd69bfc227272f8eab1.zip |
we dont need the base one actually (self.__base_methods)
Diffstat (limited to 'func/minion')
-rw-r--r-- | func/minion/modules/func_module.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py index 56fd171..d05af66 100644 --- a/func/minion/modules/func_module.py +++ b/func/minion/modules/func_module.py @@ -87,13 +87,16 @@ class FuncModule(object): method_name @param name: the name of the method - @retun : list or None + @retun : dict(name:[arg1,arg2...]) or {} """ - #is it a tuple ? - + if not self.__is_public_valid_method(name): return {} + #we dont need them actually + if name in self.__base_methods.keys(): + return {} + arg_names = inspect.getargspec(getattr(self,name)) #arg_names[0] is argument names #arg_names[1] is *arg |