summaryrefslogtreecommitdiffstats
path: root/src/lib/SSLServer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/SSLServer.py')
-rw-r--r--src/lib/SSLServer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py
index d22706822..135178cb1 100644
--- a/src/lib/SSLServer.py
+++ b/src/lib/SSLServer.py
@@ -319,6 +319,12 @@ class XMLRPCServer (SocketServer.ThreadingMixIn, SSLServer,
name = instance.name
except AttributeError:
name = "unknown"
+ if hasattr(instance, 'plugins'):
+ for pname, pinst in instance.plugins.iteritems():
+ for mname in pinst.__rmi__:
+ xmname = "%s.%s" % (pname, mname)
+ fn = getattr(pinst, mname)
+ self.register_function(lambda x: fn(), name=xmname)
self.logger.info("serving %s at %s" % (name, self.url))
def serve_forever (self):