view website/issues/detectors/statusauditor.py @ 5756:e48b039b0ec0

issue2550966: fix suboptimal links in docs. I think I got the majority of them. Some links still don't resolve because they are gone and there is no replacement afaict. Also the check is picking up example links like: https://.../rest and http://localhost:8017/... which should not be checked but are.
author John Rouillard <rouilj@ieee.org>
date Sat, 01 Jun 2019 21:39:17 -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/