From 2adeed3029bb223ea32c77f31da28bfe3dadcd3e Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Thu, 6 Sep 2007 11:09:12 -0700 Subject: 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). --- ipa-server/ipa-gui/ipagui/helpers/userhelper.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ipa-server/ipa-gui/ipagui/helpers/userhelper.py') diff --git a/ipa-server/ipa-gui/ipagui/helpers/userhelper.py b/ipa-server/ipa-gui/ipagui/helpers/userhelper.py index 2a2571db..e1ade3a2 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" -- cgit