#NEWLINE# def feed( request , url , feed_dict = None ) : #NEWLINE# #INDENT# 'Provided for backwards compatibility.' #NEWLINE# if ( not feed_dict ) : #NEWLINE# #INDENT# raise Http404 ( _ ( 'No feeds are registered.' ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# ( slug , param ) = url . split ( '/' , 1 ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# ( slug , param ) = ( url , '' ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# f = feed_dict [ slug ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise Http404 ( ( _ ( "Slug %r isn't registered." ) % slug ) ) #NEWLINE# #UNINDENT# instance = f ( ) #NEWLINE# instance . feed_url = ( getattr ( f , 'feed_url' , None ) or request . path ) #NEWLINE# instance . title_template = ( f . title_template or ( 'feeds/%s_title.html' % slug ) ) #NEWLINE# instance . description_template = ( f . description_template or ( 'feeds/%s_description.html' % slug ) ) #NEWLINE# return instance ( request )