#NEWLINE# @ common . with_login #NEWLINE# def change_email_addr( self , args ) : #NEWLINE# #INDENT# if ( 'email_change' in args ) : #NEWLINE# #INDENT# self . current_user . email = args [ 'email_change' ] #NEWLINE# self . current_user . put ( ) #NEWLINE# self . prep_json_response ( 200 , message = 'Email updated!' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . prep_json_response ( 400 , key = 'noemail' )