#NEWLINE# @ sensitive_variables ( 'data' , 'password' ) #NEWLINE# def handle( self , request , data ) : #NEWLINE# #INDENT# user = data . pop ( 'id' ) #NEWLINE# data . pop ( 'confirm_password' , None ) #NEWLINE# data . pop ( 'domain_id' ) #NEWLINE# data . pop ( 'domain_name' ) #NEWLINE# try : #NEWLINE# #INDENT# response = api . keystone . user_update ( request , user , ** data ) #NEWLINE# messages . success ( request , _ ( 'User has been updated successfully.' ) ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# response = exceptions . handle ( request , ignore = True ) #NEWLINE# messages . error ( request , _ ( 'Unable to update the user.' ) ) #NEWLINE# #UNINDENT# if isinstance ( response , http . HttpResponse ) : #NEWLINE# #INDENT# return response #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True