def blog_post_feed(request, format, **kwargs):
 try:
  return {u'rss': PostsRSS, u'atom': PostsAtom}[format](**kwargs)(request)
 except KeyError:
  raise Http404()

def blog_post_feed ( request , format , ** kwargs ) : try : return { u'rss' : PostsRSS , u'atom' : PostsAtom } [ format ] ( ** kwargs ) ( request ) except KeyError : raise Http404 ( )
blog posts feeds - maps format to the correct feed view .