#NEWLINE# def feed( request , feed_id = None , content_type = None , object_id = None , template_name = 'feeds/detail.html' ) : #NEWLINE# #INDENT# if feed_id : #NEWLINE# #INDENT# feed = get_object_or_404 ( Feed , pk = object_type ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( content_type and object_id ) : #NEWLINE# #INDENT# object_type = get_object_or_404 ( ContentType , id = content_type ) #NEWLINE# content_object = object_type . get_object_for_this_type ( id = object_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# #UNINDENT# return render_to_response ( template_name , { #NEWLINE# #INDENT# 'feed' : feed , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )