#NEWLINE# def make_atom( self , feed_name , contents ) : #NEWLINE# #INDENT# feed = AtomFeed ( feed_name , feed_url = request . url , url = request . url_root ) #NEWLINE# for content in contents : #NEWLINE# #INDENT# if ( not content . channel . include_in_rss ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if content . created_by : #NEWLINE# #INDENT# author = feed . created_by . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# author = Config . get ( 'site' , 'site_author' , '' ) #NEWLINE# #UNINDENT# feed . add ( content . title , cdata ( content . get_text ( ) ) , content_type = 'html' , author = author , url = self . make_external_url ( content . get_absolute_url ( ) ) , updated = content . updated_at , published = content . created_at ) #NEWLINE# #UNINDENT# return feed