diff options
author | makkalot <makkalot@gmail.com> | 2008-06-23 18:52:09 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-06-23 18:52:09 +0300 |
commit | 30a2391e1078bca14c83ad3b433a46f6929b29f4 (patch) | |
tree | 67f4267d76827d62599f6cee8f5d27df5cf50128 | |
parent | b6a719aad8854627f0972f5e7ce1708be2520cf2 (diff) | |
download | func-30a2391e1078bca14c83ad3b433a46f6929b29f4.tar.gz func-30a2391e1078bca14c83ad3b433a46f6929b29f4.tar.xz func-30a2391e1078bca14c83ad3b433a46f6929b29f4.zip |
enable again the identity thing
-rw-r--r-- | funcweb/funcweb/controllers.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py index 2b2c988..f2c030f 100644 --- a/funcweb/funcweb/controllers.py +++ b/funcweb/funcweb/controllers.py @@ -32,7 +32,7 @@ class Root(controllers.RootController): #will be reused for widget validation @expose(template="funcweb.templates.minions") - #@identity.require(identity.not_anonymous()) + @identity.require(identity.not_anonymous()) def minions(self, glob='*'): """ Return a list of our minions that match a given glob """ return dict(minions=Minions(glob).get_all_hosts()) @@ -40,7 +40,7 @@ class Root(controllers.RootController): index = minions # start with our minion view, for now @expose(template="funcweb.templates.minion") - #@identity.require(identity.not_anonymous()) + @identity.require(identity.not_anonymous()) def minion(self, name="*", module=None, method=None): """ Display module or method details for a specific minion. @@ -75,7 +75,7 @@ class Root(controllers.RootController): @expose(template="funcweb.templates.method_args") - #@identity.require(identity.not_anonymous()) + @identity.require(identity.not_anonymous()) def method_display(self,minion=None,module=None,method=None): global global_form @@ -138,6 +138,7 @@ class Root(controllers.RootController): @expose() + @identity.require(identity.not_anonymous()) def handle_minion_error(self,tg_errors=None): """ The method checks the result from turbogears.validate @@ -153,6 +154,7 @@ class Root(controllers.RootController): @expose(allow_json=True) @error_handler(handle_minion_error) @validate(form=validate_decorator_updater) + @identity.require(identity.not_anonymous()) def post_form(self,**kw): """ Data processing part @@ -187,6 +189,7 @@ class Root(controllers.RootController): return "Missing arguments sorry can not proceess the form" @expose(template="funcweb.templates.method_args") + @identity.require(identity.not_anonymous()) def execute_link(self,minion=None,module=None,method=None): """ Method is fot those minion methods that dont accept any |