diff options
author | Adrian Likins <alikins@redhat.com> | 2008-03-28 14:13:49 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-03-28 14:13:49 -0400 |
commit | 4054792be014a9b7373a5b909f5052ab271c2307 (patch) | |
tree | 3cd0cbecad706d16d3483b2c071f101c607580e8 /funcweb | |
parent | 8bf00319db57ecfed8477f97e673248ff3d9e44a (diff) | |
download | third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.tar.gz third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.tar.xz third_party-func-4054792be014a9b7373a5b909f5052ab271c2307.zip |
Changing func/func/overlord/client.py:Client() to Overlord(). Client() still
works but will dive a deprecation warning.
First pass at this refactor. I think just about everything has been updated, but
some questions remain. Like if client.py needs a name change.
Diffstat (limited to 'funcweb')
-rw-r--r-- | funcweb/funcweb/controllers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py index eb2327f..b45d81b 100644 --- a/funcweb/funcweb/controllers.py +++ b/funcweb/funcweb/controllers.py @@ -2,7 +2,7 @@ import logging log = logging.getLogger(__name__) from turbogears import controllers, expose, flash, identity, redirect -from func.overlord.client import Client, Minions +from func.overlord.client import Overlord, Minions class Root(controllers.RootController): @@ -24,7 +24,7 @@ class Root(controllers.RootController): methods. If a method is supplied, it will display a method execution form. """ - fc = Client(name) + fc = Overlord(name) if not module: # list all modules modules = fc.system.list_modules() return dict(modules=modules) @@ -41,7 +41,7 @@ class Root(controllers.RootController): @expose(template="funcweb.templates.run") @identity.require(identity.not_anonymous()) def run(self, minion="*", module=None, method=None, arguments=''): - fc = Client(minion) + fc = Overlord(minion) results = getattr(getattr(fc, module), method)(*arguments.split()) cmd = "%s.%s.%s(%s)" % (minion, module, method, arguments) return dict(cmd=cmd, results=results) |