Comment 1 for bug 1276180

Revision history for this message
Jeremy Stanley (fungi) wrote :

We probably need to do something like manage_projects.py's...

    configs = [config for config in yaml.load_all(open(PROJECTS_YAML))]
    if os.path.exists(PROJECTS_INI):
        projects_yaml_list = configs[0]
        defaults = ConfigParser.ConfigParser()
        defaults.read(PROJECTS_INI)
        [...]
    else:
        projects_yaml_list = configs[1]
        defaults = configs[0][0]
        [...]

Ultimately I think we need to be going through jeepyb.utils.ProjectsYamlRegistry(), maybe indirectly via new functions in jeepyb.projects.