#NEWLINE# def __call__( self , request ) : #NEWLINE# #INDENT# publisher_signature = request . path_info_peek ( ) #NEWLINE# if ( publisher_signature != self . bower . publisher_signature ) : #NEWLINE# #INDENT# return self . handler ( request ) #NEWLINE# #UNINDENT# request . path_info_pop ( ) #NEWLINE# bower_components_name = request . path_info_pop ( ) #NEWLINE# if ( bower_components_name is None ) : #NEWLINE# #INDENT# return webob . exc . HTTPNotFound ( ) #NEWLINE# #UNINDENT# component_name = request . path_info_pop ( ) #NEWLINE# if ( component_name is None ) : #NEWLINE# #INDENT# return webob . exc . HTTPNotFound ( ) #NEWLINE# #UNINDENT# component_version = request . path_info_pop ( ) #NEWLINE# if ( component_version is None ) : #NEWLINE# #INDENT# return webob . exc . HTTPNotFound ( ) #NEWLINE# #UNINDENT# file_path = request . path_info . lstrip ( '/' ) #NEWLINE# if ( file_path . strip ( ) == '' ) : #NEWLINE# #INDENT# return webob . exc . HTTPNotFound ( ) #NEWLINE# #UNINDENT# filename = self . bower . get_filename ( bower_components_name , component_name , component_version , file_path ) #NEWLINE# if ( filename is None ) : #NEWLINE# #INDENT# return webob . exc . HTTPNotFound ( ) #NEWLINE# #UNINDENT# file_app = FileApp ( filename ) #NEWLINE# response = request . get_response ( file_app ) #NEWLINE# if ( response . status_code == 200 ) : #NEWLINE# #INDENT# response . cache_control . max_age = FOREVER #NEWLINE# response . expires = ( time . time ( ) + FOREVER ) #NEWLINE# #UNINDENT# return response