#NEWLINE# def __setattr__( self , name , value ) : #NEWLINE# #INDENT# if ( name == 'password' ) : #NEWLINE# #INDENT# value = generate_password_hash ( value ) #NEWLINE# #UNINDENT# super ( User , self ) . __setattr__ ( name , value )