def add_to_params(self, parameters, value):
    if (value is None):
        return
    if (parameters.get('parameterValues', None) is not None):
        raise Exception('Only parameter-values or parameter-values-uri is allowed')
    parameter_object = {}
    for argument in value:
        try:
            argument_components = argument.split('=', 1)
            key = argument_components[0]
            value = argument_components[1]
            if (key in parameter_object):
                parameter_object[key] = [parameter_object[key], value]
            else:
                parameter_object[key] = value
        except IndexError:
            raise ParameterDefinitionError(('Invalid inline parameter format: %s' % argument))
    parsed = {'values': parameter_object}
    parameter_values = translator.definition_to_parameter_values(parsed)
    parameters['parameterValues'] = parameter_values
def add_to_params(self, parameters, value):
    if (value is None):
        return
    if (parameters.get('parameterValues', None) is not None):
        raise Exception('Only parameter-values or parameter-values-uri is allowed')
    parameter_object = {}
    for argument in value:
        try:
            argument_components = argument.split('=', 1)
            key = argument_components[0]
            value = argument_components[1]
            if (key in parameter_object):
                parameter_object[key] = [parameter_object[key], value]
            else:
                parameter_object[key] = value
        except IndexError:
            raise ParameterDefinitionError(('Invalid inline parameter format: %s' % argument))
    parsed = {'values': parameter_object}
    parameter_values = translator.definition_to_parameter_values(parsed)
    parameters['parameterValues'] = parameter_values