diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-11-06 17:30:22 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-11-06 17:30:22 -0500 |
commit | 8a8743019f45470e0d2452490ca49d9b3ac33e5d (patch) | |
tree | 4bc10789b3a6a8b6704d73aa5d4ba263661d842a /cobbler/webui/CobblerWeb.py | |
parent | ee1171bf4abedc811d40073c86ec202c99b0973e (diff) | |
download | cobbler-8a8743019f45470e0d2452490ca49d9b3ac33e5d.tar.gz cobbler-8a8743019f45470e0d2452490ca49d9b3ac33e5d.tar.xz cobbler-8a8743019f45470e0d2452490ca49d9b3ac33e5d.zip |
A couple of things, the removal of the server.update() code wasn't good for performance, so we are (for now) putting it back. More importantly this set of codechanges goes through the unit tests we already had and makes sure they use top level API calls. While this may look trivial, it's not -- the top level calls ensure data is saved and read from disk as in the full application, so they are more exhaustive. As of this commit, all tests as committed pass.
Diffstat (limited to 'cobbler/webui/CobblerWeb.py')
-rw-r--r-- | cobbler/webui/CobblerWeb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/webui/CobblerWeb.py b/cobbler/webui/CobblerWeb.py index f58142ea..14e2041e 100644 --- a/cobbler/webui/CobblerWeb.py +++ b/cobbler/webui/CobblerWeb.py @@ -62,6 +62,7 @@ class CobblerWeb(object): self.remote.token_check(self.token) self.username = self.remote.get_user_from_token(self.token) # ensure config is up2date + self.remote.update(self.token) return True except Exception, e: if str(e).find("invalid token") != -1: @@ -81,6 +82,7 @@ class CobblerWeb(object): return False self.password = None # don't need it anymore, get rid of it # ensure configuration is up2date + self.remote.update(self.token) return True # login failed |