コード例 #1
0
ファイル: tasks.py プロジェクト: agilentia/readthedocs.org
def import_crate(project):
    """
    Try importing a Project model from Crate.
    """
    try:
        result = tastyapi_client.import_crate(project)
        if result:
            log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Successful import from Crate"))
        else:
            log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate"))
    except:
        log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate"), exc_info=True)
コード例 #2
0
def import_crate(project):
    """
    Try importing a Project model from Crate.
    """
    try:
        result = tastyapi_client.import_crate(project)
        if result:
            log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Successful import from Crate"))
        else:
            log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate"))
    except:
        log.debug(LOG_TEMPLATE.format(project=project.slug, version='', msg="Failed import from Crate"), exc_info=True)
コード例 #3
0
ファイル: tasks.py プロジェクト: lukaszb/readthedocs.org
def import_crate(project):
    """
    Try importing a Project model from Crate.
    """
    try:
        result = tastyapi_client.import_crate(project)
        if result:
            log.info("Successful import from Crate")
        else:
            log.info("Failed import from Crate")

    except:
        log.info("Failed import from Crate", exc_info=True)
コード例 #4
0
ファイル: tasks.py プロジェクト: billthornton/readthedocs.org
        # Needs to happen after update_intersphinx
        clear_artifacts(version.pk)

    # Try importing from Open Comparison sites.
    try:
        result = tastyapi_client.import_project(project)
        if result:
            log.info("Successful import from Open Comparison")
        else:
            log.info("Failed import from Open Comparison")
    except:
        log.info("Failed import from Open Comparison", exc_info=True)

    # Try importing from Crate
    try:
        result = tastyapi_client.import_crate(project)
        if result:
            log.info("Successful import from Crate")
        else:
            log.info("Failed import from Crate")

    except:
        log.info("Failed import from Crate", exc_info=True)

    return True


@task
def update_imported_docs(version_pk):
    """
    Check out or update the given project's repository.
コード例 #5
0
ファイル: tasks.py プロジェクト: titilambert/readthedocs.org
        # Needs to happen after update_intersphinx
        clear_artifacts(version.pk)

    # Try importing from Open Comparison sites.
    try:
        result = tastyapi_client.import_project(project)
        if result:
            log.info("Successful import from Open Comparison")
        else:
            log.info("Failed import from Open Comparison")
    except:
        log.info("Failed import from Open Comparison", exc_info=True)

    # Try importing from Crate
    try:
        result = tastyapi_client.import_crate(project)
        if result:
            log.info("Successful import from Crate")
        else:
            log.info("Failed import from Crate")

    except:
        log.info("Failed import from Crate", exc_info=True)

    return True


@task
def update_imported_docs(version_pk):
    """
    Check out or update the given project's repository.