#NEWLINE# @ viewer . view ( 'pages_list' ) #NEWLINE# @ login_required #NEWLINE# def pages_list( page = 1 ) : #NEWLINE# #INDENT# 'Paginated view of all pages' #NEWLINE# p_order = Page . pubdate . desc ( ) #NEWLINE# pages = db_session . query ( Page ) . filter ( ( Page . user_id == session [ 'user_id' ] ) ) . order_by ( Page . pubdate . desc ( ) ) #NEWLINE# paginator = Paginator ( pages , app . config [ 'ENTRIES_PER_PAGE' ] , page , 'pages_list' ) #NEWLINE# return viewer . render ( 'pages_list.html' , pages = pages , paginator = page )