summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-17 14:10:22 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-17 14:10:22 -0500
commit48ceac230c734ae09bf11a60b526e2e5742c78a5 (patch)
treed80d7b6515de58dcead635cc73d219faa8174f14 /funcweb
parent6ae309121ca3a02f23aec05da4eb33cae03c7491 (diff)
downloadthird_party-func-48ceac230c734ae09bf11a60b526e2e5742c78a5.tar.gz
third_party-func-48ceac230c734ae09bf11a60b526e2e5742c78a5.tar.xz
third_party-func-48ceac230c734ae09bf11a60b526e2e5742c78a5.zip
Add a useful docstring, and remove an obsolete return value
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()