#NEWLINE# def update_cache_data( self , save = True ) : #NEWLINE# #INDENT# feed = feedparser . parse ( self . link ) #NEWLINE# entries = feed [ 'entries' ] [ : self . max_items ] #NEWLINE# context = { #NEWLINE# #INDENT# 'widget' : self , #NEWLINE# 'link' : feed [ 'feed' ] [ 'link' ] , #NEWLINE# 'entries' : save , #NEWLINE# #UNINDENT# } #NEWLINE# self . cache_data = render_to_string ( 'widget/feedreader/_content.html' , context ) #NEWLINE# self . cache_update = datetime . datetime . now ( ) #NEWLINE# if save : #NEWLINE# #INDENT# self . save ( )