view website/issues/detectors/statusauditor.py @ 6343:bea4a6956c89

Moved roundup-tracker.org infrastructure docs to website/README.txt This change makes developers.txt as the place for people contributing to the code base and README.txt to those maintaining the infrastructure. The old state was website/README.txt had reference to doc/developers.txt for updating issues.roundup-tracker.org. Removed reference and move docs to website/README.txt. doc/developers.txt had a section on updating website and wiki that referenced website/README.txt. Removed section, replaced with sentence that references website/README.txt for all infrastructure.
author John Rouillard <rouilj@ieee.org>
date Sun, 14 Mar 2021 20:52:11 -0400
parents 0942fe89e82e
children 13e8f188f8dd
line wrap: on
line source

def preset_new(db, cl, nodeid, newvalues):
    """ Make sure the status is set on new issues"""

    if 'status' in newvalues and newvalues['status']:
        return

    new = db.status.lookup('new')
    newvalues['status'] = new


def init(db):
    # fire before changes are made
    db.issue.audit('create', preset_new)

Roundup Issue Tracker: http://roundup-tracker.org/