#NEWLINE# @ bp . route ( '/' ) #NEWLINE# def topics( ) : #NEWLINE# #INDENT# '\n    The topics list page.\n    ' #NEWLINE# page = force_int ( request . args . get ( 'page' , 1 ) , 0 ) #NEWLINE# if ( not page ) : #NEWLINE# #INDENT# return abort ( 404 ) #NEWLINE# #UNINDENT# paginator = Topic . query . order_by ( Topic . updated . desc ( ) ) . paginate ( page ) #NEWLINE# paginator . items = fill_topics ( page . items ) #NEWLINE# return render_template ( 'topic/topics.html' , paginator = paginator , endpoint = 'topic.topics' )