Exemplo n.º 1
0
def suspend(project_id, request_user=None, reason=None):
    project = get_project_for_update(project_id)
    project_check_allowed(project, request_user, level=ADMIN_LEVEL)
    checkAlive(project)

    project.suspend(actor=request_user, reason=reason)
    qh_sync_project(project)
    logger.info("%s has been suspended." % (project))

    project_suspension_notify(project)
Exemplo n.º 2
0
def suspend(project_id, request_user=None, reason=None):
    project = get_project_for_update(project_id)
    project_check_allowed(project, request_user, level=ADMIN_LEVEL)
    checkAlive(project)

    project.suspend(actor=request_user, reason=reason)
    qh_sync_project(project)
    logger.info("%s has been suspended." % (project))

    project_suspension_notify(project)
Exemplo n.º 3
0
def suspend(project_id, request_user=None):
    get_chain_for_update(project_id)
    project = get_project_by_id(project_id)
    checkAllowed(project, request_user, admin_only=True)
    checkAlive(project)

    project.suspend()
    qh_sync_project(project)
    logger.info("%s has been suspended." % (project))

    project_suspension_notify(project)
Exemplo n.º 4
0
def suspend(project_id, request_user=None):
    get_chain_for_update(project_id)
    project = get_project_by_id(project_id)
    checkAllowed(project, request_user, admin_only=True)
    checkAlive(project)

    project.suspend()
    qh_sync_project(project)
    logger.info("%s has been suspended." % (project))

    project_suspension_notify(project)