#NEWLINE# def before_app_request( self , f ) : #NEWLINE# #INDENT# 'Like `Cocopot.before_request`.  Such a function is executed\n        before each request, even if outside of a blueprint.\n        ' #NEWLINE# self . record ( ( lambda s : s . app . before_request_funcs . setdefault ( None , [ ] ) . append ( f ) ) ) #NEWLINE# return self