#NEWLINE# @ cached ( timeout = 'SITEMAP_CACHE_TIMEOUT' ) #NEWLINE# def sitemap( self , request ) : #NEWLINE# #INDENT# sitemap = [ self . version , ( '<%s xmlns="%s">' % ( self . tag , self . xmlns ) ) ] #NEWLINE# sitemap . extend ( self . _urls ( request ) ) #NEWLINE# sitemap . append ( ( '</%s>' % self . tag ) ) #NEWLINE# return ( '\n' . join ( sitemap ) , request . cache . pop ( 'latest_lastmod' ) )