def blog_list(request, section=None):
    
    posts = Post.objects.current()
    
    section_name = None
    if section:
        try:
            section_name = dict(Post.SECTION_CHOICES)[Post.section_idx(section)]
        except __HOLE__:
            raise Http404()
        try:
            posts = Post.objects.section(section)
        except InvalidSection:
            raise Http404()
    
    return render_to_response("biblion/blog_list.html", {
        "section_slug": section,
        "section_name": section_name,
        "posts": posts,
    }, context_instance=RequestContext(request))
dataset/ETHPy150Open caseywstark/colab/colab/apps/biblion/views.py/blog_list