diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-27 14:26:52 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-27 14:26:52 -0400 |
commit | 6625dd4cbbd7b998ddb890666733da602757f38b (patch) | |
tree | d249624ca43c45414a87ba0fd617cf52be7c136a /minion | |
parent | 064afab85ea8ce7df11ad0e4b92eab8b431c90e3 (diff) | |
download | third_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 'minion')
-rwxr-xr-x | minion/server.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/minion/server.py b/minion/server.py index ce9df41..e5b9574 100755 --- a/minion/server.py +++ b/minion/server.py @@ -31,8 +31,6 @@ from func import logger # our modules import AuthedXMLRPCServer import codes -#import config_data -#import logger import module_loader import utils @@ -71,8 +69,14 @@ class XmlRpcInterface(object): # internal methods that we do instead of spreading internal goo # all over the modules. For now, at lest -akl + + # system.listMethods os a quasi stanard xmlrpc method, so + # thats why it has a odd looking name self.handlers["system.listMethods"] = self.list_methods + self.handlers["system.list_modules"] = self.list_modules + def list_modules(self): + return self.modules.keys() def list_methods(self): return self.handlers.keys() |