'Provide a view for a list of groups.'

def _list_view(self, func, request, groups):

    groups_list = [func(request, group)['group'] for group in groups]
    grp_links = self._get_collection_links(request, groups, self._collection_name)
    groups_dict = dict(groups=groups_list)
    if grp_links:
        groups_dict['group_links'] = grp_links
    return groups_dict
