コード例 #1
0
ファイル: config.py プロジェクト: ES-DOC/esdoc-py-client
def get_sources():
    """Returns set of archive sources.

    """
    config.init()

    return config.data.archive.sources
コード例 #2
0
ファイル: config.py プロジェクト: ES-DOC/esdoc-py-client
def get_directory():
    """Returns archive directory as defined withn pyesdoc.conf.

    """
    config.init()

    return config.data.archive.location
コード例 #3
0
ファイル: config.py プロジェクト: ES-DOC/esdoc-py-client
def get_projects():
    """Returns set of archive projects.

    """
    config.init()

    return config.data.archive.projects
コード例 #4
0
def get_sources():
    """Returns set of archive sources.

    """
    config.init()

    return config.data.archive.sources
コード例 #5
0
def get_projects():
    """Returns set of archive projects.

    """
    config.init()

    return config.data.archive.projects
コード例 #6
0
def get_directory():
    """Returns archive directory as defined withn pyesdoc.conf.

    """
    config.init()

    return config.data.archive.location
コード例 #7
0
ファイル: config.py プロジェクト: ES-DOC/esdoc-py-client
def get_project_sources():
    """Returns iterable of unique project/source pairs.

    """
    config.init()

    result = []
    for project in get_projects():
        for source in (f.source for f in project.feeds):
            if (project.name, source) not in result:
                result.append((project.name, source))

    return tuple(result)
コード例 #8
0
def get_project_sources():
    """Returns iterable of unique project/source pairs.

    """
    config.init()

    result = []
    for project in get_projects():
        for source in (f.source for f in project.feeds):
            if (project.name, source) not in result:
                result.append((project.name, source))

    return tuple(result)