"Jim Steil" <[EMAIL PROTECTED]> writes:
@tg.expose(allow_json=True)
def search_username(self, search):
matching_users =
User.select(User.q.display_name.startswith(search.encode('utf8')))
usernames = [user.display_name for user in matching_users]
return dict(usernames=usernames)
You're not returning the user.id, how do you expect it to appear there?
Also, another problem I've noticed is that when I start typing in my name I
get the dropdown to list those that matched what I've typed. However, the
first row of the list is never selected. I can't select it with my arrow
keys, but have to click on it with my mouse. Any idea why?
It works for me on Firefox and IE and Konqueror...
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---