#NEWLINE# @ route ( 'iframe[0-9-.a-z_]*.html' , re = True , response_content_types = ( 'text/html' , ) ) #NEWLINE# def iframe( self , request ) : #NEWLINE# #INDENT# response = request . response #NEWLINE# url = request . absolute_uri ( self . full_route . path ) #NEWLINE# response . content = ( IFRAME_TEXT % url ) #NEWLINE# hsh = hashlib . md5 ( response . content [ 0 ] ) . hexdigest ( ) #NEWLINE# value = request . get ( 'HTTP_IF_NONE_MATCH' ) #NEWLINE# if ( value and ( value . find ( hsh ) != ( - 1 ) ) ) : #NEWLINE# #INDENT# raise HttpException ( status = 304 ) #NEWLINE# #UNINDENT# self . home_cache ( value . headers ) #NEWLINE# response [ 'Etag' ] = hsh #NEWLINE# return response