#NEWLINE# def __setattr__( self , name , value ) : #NEWLINE# #INDENT# 'Special setattr to prevent changing of key values.\n        ' #NEWLINE# if getKeyColumn ( self . __class__ , name ) : #NEWLINE# #INDENT# raise DBError ( ( 'cannot assign value <%s> to key column attribute <%s> of RowObject class' % ( self , name ) ) ) #NEWLINE# #UNINDENT# if ( name in self . rowColumns ) : #NEWLINE# #INDENT# if ( ( value != self . __dict__ . get ( name , None ) ) and ( not self . dirty ) ) : #NEWLINE# #INDENT# self . setDirty ( 1 ) #NEWLINE# #UNINDENT# #UNINDENT# self . __dict__ [ name ] = value