@gen.coroutine
def QueryUsers(client, obj_store, user_id, device_id, request):
 user_friend_list = (yield gen.Task(User.QueryUsers, client, user_id, request['user_ids']))
 user_dicts = (yield [gen.Task(user.MakeUserMetadataDict, client, user_id, forward_friend, reverse_friend) for (user, forward_friend, reverse_friend) in user_friend_list])
 response = {'users': user_dicts}
 logging.info(('QUERY USERS: user: %d, device: %d, %d users' % (user_id, device_id, len(user_dicts))))
 raise gen.Return(response)

@ gen . coroutine def QueryUsers ( client , obj_store , user_id , device_id , request ) : user_friend_list = ( yield gen . Task ( User . QueryUsers , client , user_id , request [ 'user_ids' ] ) ) user_dicts = ( yield [ gen . Task ( user . MakeUserMetadataDict , client , user_id , forward_friend , reverse_friend ) for ( user , forward_friend , reverse_friend ) in user_friend_list ] ) response = { 'users' : user_dicts } logging . info ( ( 'QUERY USERS: user: %d, device: %d, %d users' % ( user_id , device_id , len ( user_dicts ) ) ) ) raise gen . Return ( response )
queries users by user id .