#NEWLINE# @ staticmethod #NEWLINE# @ db_api . main_context_manager . reader #NEWLINE# def _get_by_uuid_from_db( context , uuid ) : #NEWLINE# #INDENT# result = context . session . query ( models . ResourceProvider ) . filter_by ( uuid = uuid ) . first ( ) #NEWLINE# if ( not result ) : #NEWLINE# #INDENT# raise exception . NotFound ( ) #NEWLINE# #UNINDENT# return result