src/wstool/config_yaml.py
def aggregate_from_uris(config_uris, config_filename=None, allow_other_element=True):
    """
    Builds a List of PathSpec from a list of location strings (uri,
    paths). If locations is a folder, attempts to find config_filename
    in it, and use "folder/config_filename" instead(rewriting element
    path and stripping scm nature), else add folder as PathSpec.
    Anything else, parse yaml at location, and add a PathSpec for each
    element.

    :param config_uris: source of yaml
    :param config_filename: file to use when given a folder
    :param allow_other_element: if False, discards elements
    to be added without SCM information
    """
    aggregate_source_yaml = []
    # build up a merged list of config elements from all given config_uris
    if config_uris is None:
        return []
    for loop_uri in config_uris:
        source_path_specs = get_path_specs_from_uri(
            loop_uri, config_filename)
        # allow duplicates, dealt with in Config class
        if not allow_other_element:
            for spec in source_path_specs:
                if not spec.get_scmtype():
                    raise MultiProjectException(
                        "Forbidden non-SCM element: %s (%s)" %
                        (spec.get_local_name(), spec.get_legacy_type()))
        aggregate_source_yaml.extend(source_path_specs)
    return aggregate_source_yaml

    Builds a List of PathSpec from a list of location strings (uri,
    paths). If locations is a folder, attempts to find config_filename
    in it, and use "folder/config_filename" instead(rewriting element
    path and stripping scm nature), else add folder as PathSpec.
    Anything else, parse yaml at location, and add a PathSpec for each
    element.

    :param config_uris: source of yaml
    :param config_filename: file to use when given a folder
    :param allow_other_element: if False, discards elements
    to be added without SCM information
    
Builds a List of PathSpec from a list of location strings (uri,
paths). If locations is a folder, attempts to find config_filename
in it, and use "folder/config_filename" instead(rewriting element
path and stripping scm nature), else add folder as PathSpec.
Anything else, parse yaml at location, and add a PathSpec for each
element.
Builds a List of PathSpec from a list of location strings ( uri paths ) . If locations is a folder attempts to find config_filename in it and use " folder / config_filename " instead ( rewriting element path and stripping scm nature ) else add folder as PathSpec . Anything else parse yaml at location and add a PathSpec for each element .
def aggregate_from_uris(config_uris, config_filename=None, allow_other_element=True):
    aggregate_source_yaml = []
    if config_uris is None:
        return []
    for loop_uri in config_uris:
        source_path_specs = get_path_specs_from_uri(
            loop_uri, config_filename)
        if not allow_other_element:
            for spec in source_path_specs:
                if not spec.get_scmtype():
                    raise MultiProjectException(
                        "Forbidden non-SCM element: %s (%s)" %
                        (spec.get_local_name(), spec.get_legacy_type()))
        aggregate_source_yaml.extend(source_path_specs)
    return aggregate_source_yaml
def aggregate_from_uris ( config_uris , config_filename = None , allow_other_element = True ) : aggregate_source_yaml = [ ] if config_uris is None : return [ ] for loop_uri in config_uris : source_path_specs = get_path_specs_from_uri ( loop_uri , config_filename ) if not allow_other_element : for spec in source_path_specs : if not spec . get_scmtype ( ) : raise MultiProjectException ( "Forbidden non-SCM element: %s (%s)" % ( spec . get_local_name ( ) , spec . get_legacy_type ( ) ) ) aggregate_source_yaml . extend ( source_path_specs ) return aggregate_source_yaml
Builds a List of PathSpec from a list of location strings (uri,
paths).
Builds a List of PathSpec from a list of location strings ( uri paths ) .
"""
    Builds a List of PathSpec from a list of location strings (uri,
    paths). If locations is a folder, attempts to find config_filename
    in it, and use "folder/config_filename" instead(rewriting element
    path and stripping scm nature), else add folder as PathSpec.
    Anything else, parse yaml at location, and add a PathSpec for each
    element.

    :param config_uris: source of yaml
    :param config_filename: file to use when given a folder
    :param allow_other_element: if False, discards elements
    to be added without SCM information
    """ # build up a merged list of config elements from all given config_uris # allow duplicates, dealt with in Config class
config_uris
source of yaml
source of yaml
config_filename
file to use when given a folder
file to use when given a folder
allow_other_element
if False, discards elements
to be added without SCM information
if False discards elements to be added without SCM information