def get_list_or_404(klass, *args, **kwargs):
    queryset = _get_queryset(klass)
    obj_list = list(queryset.filter(*args, **kwargs))
    if not obj_list:
        raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
    return obj_list
Uses filter() to return a list of objects, or raise a Http404 exception if
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/shortcuts/__init__.py/get_list_or_404