diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-24 12:08:37 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-24 12:08:37 -0400 |
commit | 022666ac57634fb82c3839d4aacac4b44009aa40 (patch) | |
tree | 9198f8a30eaa2797427fb2ef2f6c2119285903fe | |
parent | 5fa80f5d7609e60daee6a14476182e73f33c2cf7 (diff) | |
download | func-022666ac57634fb82c3839d4aacac4b44009aa40.tar.gz func-022666ac57634fb82c3839d4aacac4b44009aa40.tar.xz func-022666ac57634fb82c3839d4aacac4b44009aa40.zip |
add system.listMethods support
I could of done this as a module I suppose, but this is easier
and simpler
-rwxr-xr-x | server/server.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/server.py b/server/server.py index 4e320e9..bfdf5a9 100755 --- a/server/server.py +++ b/server/server.py @@ -62,6 +62,17 @@ class XmlRpcInterface(object): self.logger.warning("module %s not loaded, missing register_rpc method" % self.modules[x]) + # internal methods that we do instead of spreading internal goo + # all over the modules. For now, at lest -akl + + self.handlers["system.listMethods"] = self.list_methods + + + def list_methods(self): + return self.handlers.keys() + + + def get_dispatch_method(self, method): if method in self.handlers: |