diff options
author | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 08:42:34 -0700 |
---|---|---|
committer | Kevin McCarthy <kmccarth@redhat.com> | 2007-09-19 08:42:34 -0700 |
commit | f17071533a73c5e989ead1b243de5397d36a38d3 (patch) | |
tree | 6156ae63ae36ede5e601bbf2fcb962783d438094 /ipa-server/ipa-gui | |
parent | 6b3d1e85da1397324fa7e8dc25706129ff8ed6fc (diff) | |
download | freeipa-f17071533a73c5e989ead1b243de5397d36a38d3.tar.gz freeipa-f17071533a73c5e989ead1b243de5397d36a38d3.tar.xz freeipa-f17071533a73c5e989ead1b243de5397d36a38d3.zip |
Implement asynchronous search for groups.
Use the filter generation code to search on multiple fields.
Diffstat (limited to 'ipa-server/ipa-gui')
-rw-r--r-- | ipa-server/ipa-gui/ipagui/controllers.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipa-server/ipa-gui/ipagui/controllers.py b/ipa-server/ipa-gui/ipagui/controllers.py index dcf65530c..7a6d87ff5 100644 --- a/ipa-server/ipa-gui/ipagui/controllers.py +++ b/ipa-server/ipa-gui/ipagui/controllers.py @@ -551,11 +551,11 @@ class Root(controllers.RootController): if criteria != None and len(criteria) > 0: try: groups = client.find_groups(criteria.encode('utf-8')) - # counter = groups[0] - # groups = groups[1:] - # if counter == -1: - # turbogears.flash("These results are truncated.<br />" + - # "Please refine your search and try again.") + counter = groups[0] + groups = groups[1:] + if counter == -1: + turbogears.flash("These results are truncated.<br />" + + "Please refine your search and try again.") except ipaerror.IPAError, e: turbogears.flash("Find groups failed: " + str(e)) raise turbogears.redirect("/grouplist") |