view website/issues/detectors/severityauditor.py @ 7338:dc1715ebbc6d

Replace divs with proper html5 landmarks. div.header -> header.header (class kept for css) div.subnav -> nav.subnav div.footer -> footer.footer Also since there are now two navs (primary on the left and the subnav with prev/next/index), all nav's get an aria-label to distinguish the subnav from the main nav.
author John Rouillard <rouilj@ieee.org>
date Sun, 14 May 2023 01:22:19 -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/