summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-15 21:51:40 +0300
committermakkalot <makkalot@gmail.com>2008-06-15 21:51:40 +0300
commitf1dedb34e548f3a9249835ba09dab1192eb16946 (patch)
tree6a62519f272f99138584e77fccf29f7267e857ad /funcweb
parenta48f1c7a7a9dc1d0563f852b0fc9d506044a00fe (diff)
downloadfunc-f1dedb34e548f3a9249835ba09dab1192eb16946.tar.gz
func-f1dedb34e548f3a9249835ba09dab1192eb16946.tar.xz
func-f1dedb34e548f3a9249835ba09dab1192eb16946.zip
show only the stuff that has exported methods,hmm it is slow
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