#NEWLINE# def __init__( self , import_formats , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ImportForm , self ) . __init__ ( * f , ** kwargs ) #NEWLINE# choices = [ ] #NEWLINE# for ( i , f ) in enumerate ( import_formats ) : #NEWLINE# #INDENT# choices . append ( ( str ( i ) , f ( ) . get_title ( ) ) ) #NEWLINE# #UNINDENT# if ( len ( import_formats ) > 1 ) : #NEWLINE# #INDENT# choices . insert ( 0 , ( '' , '---' ) ) #NEWLINE# #UNINDENT# self . fields [ 'input_format' ] . choices = choices