#NEWLINE# def append( self , state , dict_ , value , initiator , passive = PASSIVE_OFF ) : #NEWLINE# #INDENT# collection = self . get_collection ( state , dict_ , passive = passive ) #NEWLINE# if ( collection is PASSIVE_NO_RESULT ) : #NEWLINE# #INDENT# value = self . fire_append_event ( state , dict_ , value , initiator ) #NEWLINE# assert ( self . key not in dict_ ) , 'Collection was loaded during event handling.' #NEWLINE# state . _get_pending_mutation ( self . key ) . append ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# collection . append_with_event ( value , initiator )