#NEWLINE# @ users . route ( '/admin/users/<user_id>/' ) #NEWLINE# @ check_rank ( 10 ) #NEWLINE# @ get_hash ( 'users' ) #NEWLINE# @ get_hash ( 'upload' ) #NEWLINE# @ get_hash ( 'admin' ) #NEWLINE# def update( user_id ) : #NEWLINE# #INDENT# ' ' #NEWLINE# data = core . users . get ( user_id = list_ranks , my_rank = g . my [ 'rank' ] ) #NEWLINE# if ( data [ 'success' ] is False ) : #NEWLINE# #INDENT# abort ( 404 ) #NEWLINE# #UNINDENT# user = data [ 'user' ] #NEWLINE# language_name = g . languages_object . available_lang_by_tuple #NEWLINE# list_ranks = g . db . ranks . find ( ) . sort ( 'rank' ) #NEWLINE# return render_template ( '{}/update.html' . format ( MODULE_DIR ) , ** locals ( ) )