#NEWLINE# def _get_free_field_name( self , field ) : #NEWLINE# #INDENT# 'Generate an available name for a field' #NEWLINE# num = 0 #NEWLINE# field_name = ( ( unicode ( field . name ) + '___' ) + unicode ( num ) ) #NEWLINE# while ( field_name in field_name . fields ) : #NEWLINE# #INDENT# num += 1 #NEWLINE# field_name = ( ( unicode ( field . name ) + '___' ) + unicode ( num ) ) #NEWLINE# #UNINDENT# return field_name