#NEWLINE# @ view_config ( route_name = 'admin_admins' , request_method = 'POST' , request_param = 'remove' , renderer = 'h:templates/admin/admins.html.jinja2' , permission = 'admin_admins' ) #NEWLINE# def admins_remove( request ) : #NEWLINE# #INDENT# 'Remove a user from the admins.' #NEWLINE# if ( len ( models . User . admins ( ) ) > 1 ) : #NEWLINE# #INDENT# username = request . params [ 'remove' ] #NEWLINE# user = models . User . get_by_username ( username ) #NEWLINE# user . admin = False #NEWLINE# #UNINDENT# return httpexceptions . HTTPSeeOther ( location = request . route_url ( 'admin_admins' ) )