view website/issues/detectors/severityauditor.py @ 7088:a93ef7aec24e

disable opensearch generation. It doesn't work. It references an opensearch.html page in the generated docs which doesn't exist. The opensearch.xml file is (properly??) generated in _static, but referenced in the sitemap at the root not in _static.
author John Rouillard <rouilj@ieee.org>
date Tue, 29 Nov 2022 22:10:29 -0500
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/