summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-07-11 23:59:47 +0300
committermakkalot <makkalot@gmail.com>2008-07-11 23:59:47 +0300
commitdd882e7e0e6b70dc33a91c7b9c2beb54439f21b5 (patch)
tree781842f7ee79ea13029151f07737e0c3faa5ef0b /funcweb
parentdf602985de7cbc51972381b08d8093ca6a6da5cc (diff)
downloadfunc-dd882e7e0e6b70dc33a91c7b9c2beb54439f21b5.tar.gz
func-dd882e7e0e6b70dc33a91c7b9c2beb54439f21b5.tar.xz
func-dd882e7e0e6b70dc33a91c7b9c2beb54439f21b5.zip
changing some template names that were confusing
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/controllers.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py
index 6b47882..2fa6606 100644
--- a/funcweb/funcweb/controllers.py
+++ b/funcweb/funcweb/controllers.py
@@ -40,7 +40,7 @@ class Funcweb(object):
}
#will be reused for widget validation
- @expose(template="funcweb.templates.minions")
+ @expose(template="funcweb.templates.index")
@identity.require(identity.not_anonymous())
def minions(self, glob='*'):
""" Return a list of our minions that match a given glob """
@@ -57,7 +57,7 @@ class Funcweb(object):
index = minions # start with our minion view, for now
- @expose(template="funcweb.templates.minion")
+ @expose(template="funcweb.templates.modules")
@identity.require(identity.not_anonymous())
def minion(self, name="*", module=None, method=None):
""" Display module or method details for a specific minion.
@@ -127,12 +127,12 @@ class Funcweb(object):
self.func_cache['methods'] = modules
#display em
return dict(modules=modules, module=module,
- tg_template="funcweb.templates.module")
+ tg_template="funcweb.templates.methods")
else:
return "Wrong place :)"
- @expose(template="funcweb.templates.method_args")
+ @expose(template="funcweb.templates.widgets")
@identity.require(identity.not_anonymous())
def method_display(self,minion=None,module=None,method=None):
"""
@@ -284,7 +284,7 @@ class Funcweb(object):
else:
return "Missing arguments sorry can not proceess the form"
- @expose(template="funcweb.templates.method_args")
+ @expose(template="funcweb.templates.result")
@identity.require(identity.not_anonymous())
def execute_link(self,minion=None,module=None,method=None):
"""
@@ -304,9 +304,7 @@ class Funcweb(object):
self.func_cache['methods']=None
result = getattr(getattr(fc,module),method)()
- return str(result)
-
-
+ return dict(result=str(result))
@expose()
def logout(self):