#NEWLINE# def _parse_fieldnames( self , row ) : #NEWLINE# #INDENT# 'Parse our input and output fieldname dictionaries.' #NEWLINE# input_fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# output_fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( '/INPUTS' in row ) : #NEWLINE# #INDENT# in_start = ( row . index ( '/INPUTS' ) + 1 ) #NEWLINE# out_start = ( row . index ( '/OUTPUTS' ) + 1 ) #NEWLINE# out_end = row . index ( '/METADATA' ) #NEWLINE# if ( in_start < ( out_start - 1 ) ) : #NEWLINE# #INDENT# for i in range ( in_start , ( out_start - 1 ) ) : #NEWLINE# #INDENT# input_fields [ i ] = row [ i ] #NEWLINE# #UNINDENT# #UNINDENT# if ( out_start < ( len ( row ) - 1 ) ) : #NEWLINE# #INDENT# for i in range ( out_start , out_end ) : #NEWLINE# #INDENT# output_fields [ i ] = row [ i ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return ( input_fields , output_fields )