#NEWLINE# def next( self , field = None , value = None ) : #NEWLINE# #INDENT# part = self . remaining_paths . pop ( 0 ) #NEWLINE# if ( value and ( field is None ) ) : #NEWLINE# #INDENT# from dockit.schema.fields import SchemaField #NEWLINE# from dockit.schema.schema import Schema #NEWLINE# if isinstance ( value , Schema ) : #NEWLINE# #INDENT# field = SchemaField ( schema = type ( value ) ) #NEWLINE# #UNINDENT# #UNINDENT# entry = { #NEWLINE# #INDENT# 'field' : field , #NEWLINE# 'value' : part , #NEWLINE# 'part' : part , #NEWLINE# #UNINDENT# } #NEWLINE# self . resolved_paths . append ( entry ) #NEWLINE# self . _called = True