#NEWLINE# def _init_app( self , app ) : #NEWLINE# #INDENT# 'Perform initialization actions with the given :class:`flask.Flask`\n        object.\n\n        :param app: The flask application object\n        :type app: flask.Flask\n        ' #NEWLINE# app . handle_exception = partial ( self . error_router , app . handle_exception ) #NEWLINE# app . handle_user_exception = partial ( self . error_router , app . handle_user_exception ) #NEWLINE# if ( len ( self . resources ) > 0 ) : #NEWLINE# #INDENT# for ( resource , urls , kwargs ) in self . resources : #NEWLINE# #INDENT# self . _register_view ( app , resource , * urls , ** kwargs )