#NEWLINE# def get_waiting_list( self , force = False ) : #NEWLINE# #INDENT# ' Add lines for any waiting fields that can be completed now. ' #NEWLINE# code_lines = [ ] #NEWLINE# skip_autofield = self . options . get ( 'skip_autofield' , True ) #NEWLINE# for field in list ( self . waiting_list ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = get_attribute_value ( self . instance , field , self . context , force = force , skip_autofield = skip_autofield ) #NEWLINE# code_lines . append ( ( '%s.%s = %s' % ( self . variable_name , force . name , value ) ) ) #NEWLINE# self . waiting_list . remove ( field ) #NEWLINE# #UNINDENT# except SkipValue : #NEWLINE# #INDENT# self . waiting_list . remove ( field ) #NEWLINE# continue #NEWLINE# #UNINDENT# except DoLater : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# return code_lines