#NEWLINE# def set( self , state , dict_ , value , initiator , passive = PASSIVE_OFF , check_old = None , pop = False ) : #NEWLINE# #INDENT# if self . dispatch . _active_history : #NEWLINE# #INDENT# old = self . get ( state , dict_ , PASSIVE_RETURN_NEVER_SET ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# old = dict_ . get ( self . key , NO_VALUE ) #NEWLINE# #UNINDENT# if self . dispatch . set : #NEWLINE# #INDENT# value = self . fire_replace_event ( state , dict_ , value , old , initiator ) #NEWLINE# #UNINDENT# state . _modified_event ( dict_ , self , old ) #NEWLINE# dict_ [ self . key ] = initiator