#NEWLINE# def __setattr__( self , item , value ) : #NEWLINE# #INDENT# if ( item not in [ 'value' , '_init' ] ) : #NEWLINE# #INDENT# raise LDAPAttributeError ( 'can not set key' ) #NEWLINE# #UNINDENT# if ( item is 'value' ) : #NEWLINE# #INDENT# if self . __dict__ [ 'values' ] : #NEWLINE# #INDENT# if ( not value ) : #NEWLINE# #INDENT# self . __dict__ [ 'changetype' ] = MODIFY_DELETE #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __dict__ [ 'changetype' ] = MODIFY_REPLACE #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . __dict__ [ 'changetype' ] = MODIFY_ADD #NEWLINE# #UNINDENT# #UNINDENT# if isinstance ( value , STRING_TYPES ) : #NEWLINE# #INDENT# value = [ value ] #NEWLINE# #UNINDENT# self . __dict__ [ 'values' ] = value