[Freeipa-devel] [PATCH] remove auto-wildcard and list users

Kevin McCarthy kmccarth at redhat.com
Mon Aug 20 20:17:45 UTC 2007


Kevin McCarthy wrote:
> 2 liner removes auto-wildcarding from the search.  It also removese the
> 'list users' link.
> 
> Any suggestions on how to bullet-proof the search field?

sorry.  patch attached this time.

-Kevin
-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1187640840 25200
# Node ID e5c15595b190e6bb53f3b81840154676f8edc7c4
# Parent  0cb522cdbae570405c413bbbda8eea96eae6a6e9
Remove auto-wildcarding of uid search.
Remove list users link.

diff -r 0cb522cdbae5 -r e5c15595b190 ipa-server/ipa-gui/ipagui/controllers.py
--- a/ipa-server/ipa-gui/ipagui/controllers.py	Mon Aug 20 12:10:50 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/controllers.py	Mon Aug 20 13:14:00 2007 -0700
@@ -141,7 +141,7 @@ class Root(controllers.RootController):
         users = None
         uid = kw.get('uid')
         if uid != None and len(uid) > 0:
-            users = client.find_users("*%s*" % uid)
+            users = client.find_users(uid)
 
         return dict(users=users, fields=forms.user.UserFields())
 
diff -r 0cb522cdbae5 -r e5c15595b190 ipa-server/ipa-gui/ipagui/templates/userlayout.kid
--- a/ipa-server/ipa-gui/ipagui/templates/userlayout.kid	Mon Aug 20 12:10:50 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/templates/userlayout.kid	Mon Aug 20 13:14:00 2007 -0700
@@ -14,8 +14,7 @@
       <div id="sidebar">
           <h2>Tools</h2>
           <a href="${tg.url('/usernew')}">Add Person</a><br/>
-          <a href="${tg.url('/userindex')}">Find People</a><br/>
-          <a href="${tg.url('/userlist')}">List People</a><br/>
+          <a href="${tg.url('/userlist')}">Find People</a><br/>
       </div>
 </body>
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070820/10680696/attachment.bin>


More information about the Freeipa-devel mailing list