summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-24 12:08:37 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-24 12:08:37 -0400
commit022666ac57634fb82c3839d4aacac4b44009aa40 (patch)
tree9198f8a30eaa2797427fb2ef2f6c2119285903fe
parent5fa80f5d7609e60daee6a14476182e73f33c2cf7 (diff)
downloadfunc-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-xserver/server.py11
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: