#NEWLINE# def create_complex_inputs( self , source , inputs ) : #NEWLINE# #INDENT# 'Create new ComplexInput as clone of original ComplexInput\n        because of inputs can be more then one, take it just as Prototype\n        :return collections.deque:\n        ' #NEWLINE# outinputs = deque ( maxlen = source . max_occurs ) #NEWLINE# for inpt in inputs : #NEWLINE# #INDENT# data_input = source . clone ( ) #NEWLINE# frmt = data_input . supported_formats [ 0 ] #NEWLINE# if ( 'mimeType' in inpt ) : #NEWLINE# #INDENT# if inpt [ 'mimeType' ] : #NEWLINE# #INDENT# frmt = data_input . get_format ( inpt [ 'mimeType' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# frmt = data_input . data_format #NEWLINE# #UNINDENT# #UNINDENT# if frmt : #NEWLINE# #INDENT# data_input . data_format = frmt #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise InvalidParameterValue ( ( 'Invalid mimeType value %s for input %s' % ( inpt . get ( 'mimeType' ) , frmt . identifier ) ) , 'mimeType' ) #NEWLINE# #UNINDENT# data_input . method = inpt . get ( 'method' , 'GET' ) #NEWLINE# href = inpt . get ( 'href' , None ) #NEWLINE# complex_data_handler = self . _get_complex_input_handler ( href ) #NEWLINE# complex_data_handler ( data_input , inpt ) #NEWLINE# outinputs . append ( data_input ) #NEWLINE# #UNINDENT# if ( len ( outinputs ) < source . min_occurs ) : #NEWLINE# #INDENT# raise MissingParameterValue ( locator = source . identifier ) #NEWLINE# #UNINDENT# return outinputs