summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-27 14:26:52 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-27 14:26:52 -0400
commit6625dd4cbbd7b998ddb890666733da602757f38b (patch)
treed249624ca43c45414a87ba0fd617cf52be7c136a /modules
parent064afab85ea8ce7df11ad0e4b92eab8b431c90e3 (diff)
downloadthird_party-func-6625dd4cbbd7b998ddb890666733da602757f38b.tar.gz
third_party-func-6625dd4cbbd7b998ddb890666733da602757f38b.tar.xz
third_party-func-6625dd4cbbd7b998ddb890666733da602757f38b.zip
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
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/func_module.py5
1 files changed, 3 insertions, 2 deletions
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