summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/controllers.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py
index fc929d4..dd37973 100644
--- a/funcweb/funcweb/controllers.py
+++ b/funcweb/funcweb/controllers.py
@@ -10,11 +10,17 @@ class Root(controllers.RootController):
def minions(self):
""" Return a list of our minions """
fc = Client("*")
- return dict(minions=fc.system.list_methods(), widgets=[])
+ return dict(minions=fc.system.list_methods())
@expose(template="funcweb.templates.minion")
def minion(self, name, module=None, method=None):
- """ View all modules for a given minion """
+ """ Display details for a given minion.
+
+ If only the minion name is given, it will display a list of modules
+ for that minion. If a module is supplied, it will display a list of
+ methods. If a method is supplied, it will display a method execution
+ form.
+ """
fc = Client(name)
if not module: # list all modules
modules = fc.system.list_modules()