summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Component.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index 2a3ef20e1..33b1c9289 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -239,15 +239,14 @@ class Component (object):
raise xmlrpclib.Fault(getattr(e, "fault_code", 1), str(e))
return result
- @exposed
def listMethods(self):
"""Custom XML-RPC introspective method list."""
return [
name for name, func in inspect.getmembers(self, callable)
if getattr(func, "exposed", False)
]
+ listMethods = exposed(listMethods)
- @exposed
def methodHelp(self, method_name):
"""Custom XML-RPC introspective method help.
@@ -260,6 +259,7 @@ class Component (object):
except NoExposedMethod:
return ""
return pydoc.getdoc(func)
+ methodHelp = exposed(methodHelp)
def get_name(self):
"""The name of the component."""