Exemplo n.º 1
0
def selectable_locations_dict():
    selectable_locations_dict = locations()
    paths = []
    for location in selectable_locations_dict:
        if location[:4] == "path":
            paths.append(location)
    for path in paths:
        del selectable_locations_dict[path]
    return selectable_locations_dict
Exemplo n.º 2
0
def selectable_locations_dict():
    """ Returns the locations dictionary from locations_name,
        excluding the values that are a path.
        (Will be the locations that the user can select)
    """
    selectable_locations_dict = locations()
    paths = []
    for location in selectable_locations_dict:
        if location[:
                    4] == "path":  # All of the path locations begin with "path_...""
            paths.append(location)
    for path in paths:
        del selectable_locations_dict[path]
    return selectable_locations_dict
Exemplo n.º 3
0
def all_locations_dict():
    all_locations_dict = locations()
    return all_locations_dict
Exemplo n.º 4
0
def all_locations_dict():
    """ Returns the locations dictionary from locations_name.
    """
    all_locations_dict = locations()
    return all_locations_dict