#NEWLINE# def format_entry( self , channel , feed , entry , is_announce ) : #NEWLINE# #INDENT# key_name = ( 'announceFormat' if is_announce else 'format' ) #NEWLINE# if ( feed . name in self . registryValue ( 'feeds' ) ) : #NEWLINE# #INDENT# specific_key_name = registry . join ( [ 'feeds' , feed . name , key_name ] ) #NEWLINE# template = ( self . registryValue ( specific_key_name , channel ) or self . registryValue ( key_name , channel ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# template = self . registryValue ( key_name , channel ) #NEWLINE# #UNINDENT# date = entry . get ( 'published_parsed' ) #NEWLINE# date = utils . str . timestamp ( date ) #NEWLINE# s = string . Template ( template ) . safe_substitute ( feed_name = feed . name , date = date , ** entry ) #NEWLINE# return self . _normalize_entry ( s )