summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/controllers.py
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-09-06 11:09:12 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-09-06 11:09:12 -0700
commit2adeed3029bb223ea32c77f31da28bfe3dadcd3e (patch)
tree813b4bab1b29046f24226d5a75ebd5d1b4eb294d /ipa-server/ipa-gui/ipagui/controllers.py
parent268dd829df41199c23b9b740bbc9bad2164b22d6 (diff)
downloadfreeipa-2adeed3029bb223ea32c77f31da28bfe3dadcd3e.tar.gz
freeipa-2adeed3029bb223ea32c77f31da28bfe3dadcd3e.tar.xz
freeipa-2adeed3029bb223ea32c77f31da28bfe3dadcd3e.zip
Add search box in header.
Change account status to use select list and 'active'/'inactive' values. Improve autosuggest to keep suggesting unless you overwrite a suggestion (if you correct the name, it will re-suggest).
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/controllers.py')
-rw-r--r--ipa-server/ipa-gui/ipagui/controllers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/controllers.py b/ipa-server/ipa-gui/ipagui/controllers.py
index 73945fe4c..b984c2a05 100644
--- a/ipa-server/ipa-gui/ipagui/controllers.py
+++ b/ipa-server/ipa-gui/ipagui/controllers.py
@@ -48,6 +48,14 @@ class Root(controllers.RootController):
def index(self):
return dict()
+ @expose()
+ def topsearch(self, **kw):
+ if kw.get('searchtype') == "Users":
+ return self.userlist(uid=kw.get('searchvalue'))
+ else:
+ return self.index()
+
+
########
# User #