def fetch_default_values_for_name(default_values, config_name):
    """
    Fetch the default values for a config name.

    :param default_values   Default values (dict)
    :param config_name      Configuration name (str)
    """
    default_keys = default_values.keys()
    split_parent_names = config_name.split(":")[:-1]

    current_values = {}
    current_parent = ""

    # Fetch global defaults
    if "" in default_keys:
        current_values = default_values[""]

    # Check for each namespaces
    for parent in split_parent_names:
        # Compute parent name
        if current_parent == "":
            current_parent = parent
        else:
            current_parent = ":".join((current_parent, parent))

        if current_parent in default_keys:
            values = default_values[current_parent]
            current_values.update(values)

    return current_values