#NEWLINE# def _process_colparams( self , parameters ) : #NEWLINE# #INDENT# def process_single( p ) : #NEWLINE# #INDENT# if isinstance ( p , ( list , tuple ) ) : #NEWLINE# #INDENT# return dict ( ( ( c . key , pval ) for ( c , pval ) in zip ( self . table . c , p ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return p #NEWLINE# #UNINDENT# #UNINDENT# if ( self . _preserve_parameter_order and ( parameters is not None ) ) : #NEWLINE# #INDENT# if ( ( not isinstance ( parameters , list ) ) or ( parameters and ( not isinstance ( parameters [ 0 ] , tuple ) ) ) ) : #NEWLINE# #INDENT# raise ValueError ( 'When preserve_parameter_order is True, values() only accepts a list of 2-tuples' ) #NEWLINE# #UNINDENT# self . _parameter_ordering = [ key for ( key , value ) in parameters ] #NEWLINE# return ( dict ( parameters ) , False ) #NEWLINE# #UNINDENT# if ( isinstance ( parameters , ( list , tuple ) ) and parameters and isinstance ( parameters [ 0 ] , ( list , tuple , dict ) ) ) : #NEWLINE# #INDENT# if ( not self . _supports_multi_parameters ) : #NEWLINE# #INDENT# raise exc . InvalidRequestError ( 'This construct does not support multiple parameter sets.' ) #NEWLINE# #UNINDENT# return ( [ process_single ( p ) for p in parameters ] , True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( process_single ( parameters ) , False )