view website/issues/detectors/severityauditor.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
line wrap: on
line source


def init_severity(db, cl, nodeid, newvalues):
    """Make sure severity is set on new issues"""
    if 'severity' in newvalues and newvalues['severity']:
        return

    normal = db.severity.lookup('normal')
    newvalues['severity'] = normal

def init(db):
    db.issue.audit('create', init_severity)

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