Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/p/dpxdt-HEAD/dpxdt/server/frontend.py   dpxdt(Download)
            models.Release.REVIEWING,
            models.Release.RECEIVING,
            models.Release.PROCESSING)
 
        if form.good.data and release.status in decision_states:

src/d/p/dpxdt-HEAD/dpxdt/server/api.py   dpxdt(Download)
    if last_candidate:
        release.number += last_candidate.number
        if last_candidate.status == models.Release.PROCESSING:
            canceled_task_count = work_queue.cancel(
                release_id=last_candidate.id)
def _check_release_done_processing(release):
    """Moves a release candidate to reviewing if all runs are done."""
    if release.status != models.Release.PROCESSING:
        # NOTE: This statement also guards for situations where the user has
        # prematurely specified that the release is good or bad. Once the user
    utils.jsonify_assert(release, 'Release does not exist')
 
    release.status = models.Release.PROCESSING
    db.session.add(release)
    _check_release_done_processing(release)