summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/controllers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py
index adf52b2..51dd20d 100644
--- a/funcweb/funcweb/controllers.py
+++ b/funcweb/funcweb/controllers.py
@@ -30,6 +30,15 @@ class Root(controllers.RootController):
if not module: # list all modules
#just list those who have get_method_args
modules = fc.system.list_modules()
+ display_modules = []
+ #FIXME slow really i know !
+ for module in modules.itervalues():
+ for mod in module:
+ if getattr(fc,mod).get_method_args()[name]:
+ display_modules.append(mod)
+ modules = {}
+ modules[name]=display_modules
+
return dict(modules=modules)
else: # a module is specified
if method: # minion.module.method specified; bring up execution form