From 6625dd4cbbd7b998ddb890666733da602757f38b Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 27 Sep 2007 14:26:52 -0400 Subject: add a system.list_modules method that returns a list of all the modules add a MODULE.list_methods that returns a list of all the methods for a module note that these kind of crisscross system.listMethods, but tis okay --- modules/func_module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/func_module.py b/modules/func_module.py index ae8bb11..f488e83 100755 --- a/modules/func_module.py +++ b/modules/func_module.py @@ -35,6 +35,7 @@ class FuncModule(object): "module_version" : self.__module_version, "module_api_version" : self.__module_api_version, "module_description" : self.__module_description, + "list_methods" : self.__list_methods } def __init_log(self): @@ -49,8 +50,8 @@ class FuncModule(object): for meth in self.methods: handlers["%s.%s" % (module_name,meth)] = self.methods[meth] -# def list_methods(self): -# return self.methods.keys() + self.__base_methods.keys() + def __list_methods(self): + return self.methods.keys() + self.__base_methods.keys() def __module_version(self): return self.version -- cgit