#NEWLINE# def get_all_pending( self , state , dict_ , passive = PASSIVE_NO_INITIALIZE ) : #NEWLINE# #INDENT# if ( self . key in dict_ ) : #NEWLINE# #INDENT# current = dict_ [ self . key ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( passive & CALLABLES_OK ) : #NEWLINE# #INDENT# current = self . get ( state , dict_ , passive = passive ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# #UNINDENT# if ( ( current is not None ) and ( current is not PASSIVE_NO_RESULT ) and ( current is not NEVER_SET ) ) : #NEWLINE# #INDENT# ret = [ ( instance_state ( current ) , current ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret = [ ( None , None ) ] #NEWLINE# #UNINDENT# if ( self . key in state . committed_state ) : #NEWLINE# #INDENT# original = state . committed_state [ self . key ] #NEWLINE# if ( ( original is not None ) and ( original is not PASSIVE_NO_RESULT ) and ( original is not NEVER_SET ) and ( original is not current ) ) : #NEWLINE# #INDENT# ret . append ( ( instance_state ( original ) , original ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ret