#NEWLINE# @ app . route ( '/admin/user/' ) #NEWLINE# @ auth . admin_required #NEWLINE# def user_list( ) : #NEWLINE# #INDENT# args = parser . parse ( { #NEWLINE# #INDENT# 'email' : wf . Str ( missing = None ) , #NEWLINE# 'permissions' : wf . DelimitedList ( wf . Str ( ) , delimiter = ',' , missing = [ ] ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( user_dbs , cursors ) = model . User . get_dbs ( email = args [ 'email' ] , prev_cursor = True ) #NEWLINE# permissions = list ( UserUpdateForm . _permission_choices ) #NEWLINE# permissions += args [ 'permissions' ] #NEWLINE# return flask . render_template ( 'user/user_list.html' , html_class = 'user-list' , title = 'User List' , user_dbs = user_dbs , next_url = util . generate_next_url ( cursors [ 'next' ] ) , prev_url = util . generate_next_url ( cursors [ 'prev' ] ) , api_url = flask . url_for ( 'api.admin.user.list' ) , permissions = sorted ( set ( permissions ) ) )