def auto_completion_search_members(context, input_suggest):
    """
    Render an auto completion to search users.

    Override ``account/ac_search_users.html`` if you want to change the
    design.
    """
    request = context['request']
    input_suggest = input_suggest

    data = []
    ao = set([])
    ao_member = get_allowed_objects(request.user, Community, 'member')
    ao = ao.union(set(ao_member))
    ao_manage = get_allowed_objects(request.user, Community, 'manage')
    ao = ao.union(set(ao_manage))

    communities = Community.objects.filter(id__in=ao).order_by('name')
    objects = set([])
    for com in communities:
        objects = objects.union(set(get_acl_by_object(com, 'member')))
        objects = objects.union(set(get_acl_by_object(com, 'manage')))
        data.append([com.name, (str(com.id) % "g-%s")])

    data.extend([("%s %s" % (x.last_name, x.first_name), ("u-%s" % str(x.id)))
                for x in objects])
    members_data = simplejson.dumps(data)
    return locals()
dataset/ETHPy150Open zorna/zorna/zorna/communities/templatetags/communities_tags.py/auto_completion_search_members/swapped operands of `%`