summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/helpers/userhelper.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/helpers/userhelper.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/helpers/userhelper.py')
-rw-r--r--ipa-server/ipa-gui/ipagui/helpers/userhelper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/helpers/userhelper.py b/ipa-server/ipa-gui/ipagui/helpers/userhelper.py
index 2a2571dbe..e1ade3a2c 100644
--- a/ipa-server/ipa-gui/ipagui/helpers/userhelper.py
+++ b/ipa-server/ipa-gui/ipagui/helpers/userhelper.py
@@ -21,3 +21,9 @@ def password_is_expired(days):
def password_expires_soon(days):
return (not password_is_expired(days)) and (days < 7)
+
+def account_status_display(status):
+ if status == "true":
+ return "inactive"
+ else:
+ return "active"