From 48ceac230c734ae09bf11a60b526e2e5742c78a5 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Thu, 17 Jan 2008 14:10:22 -0500 Subject: Add a useful docstring, and remove an obsolete return value --- funcweb/funcweb/controllers.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'funcweb') 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() -- cgit