summaryrefslogtreecommitdiffstats
path: root/func/minion
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-15 16:50:08 +0300
committermakkalot <makkalot@gmail.com>2008-06-15 16:50:08 +0300
commitf835390c4362d95e6d9084577e662332b82e2a20 (patch)
treeb59d9b393a2638a714a9a662bcb56aa22ac0a149 /func/minion
parentc06d90260d9e6b2d0862ebe0a7f432329daefe94 (diff)
downloadfunc-f835390c4362d95e6d9084577e662332b82e2a20.tar.gz
func-f835390c4362d95e6d9084577e662332b82e2a20.tar.xz
func-f835390c4362d95e6d9084577e662332b82e2a20.zip
validating if all arguments are registered
Diffstat (limited to 'func/minion')
-rw-r--r--func/minion/modules/func_module.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py
index 724a27b..e66f410 100644
--- a/func/minion/modules/func_module.py
+++ b/func/minion/modules/func_module.py
@@ -96,12 +96,15 @@ class FuncModule(object):
return {}
#see if user tried to register an not implemented method :)
- for method in tmp_arg_dict.keys():
+ for method in tmp_arg_dict.iterkeys():
if not hasattr(self,method):
raise NonExistingMethodRegistered("%s is not in %s "%(method,self.__class__.__name__))
#create argument validation instance
self.arg_comp = ArgCompatibility(tmp_arg_dict)
+ #see if all registered arguments are there
+ for method in tmp_arg_dict.iterkeys():
+ self.is_all_arguments_registered(self,method,tmp_arg_dict[method]['args'])
#see if the options that were used are OK..
self.arg_comp.validate_all()