Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 7492:452a8bd1d826
add file with sphinx requirements for building doc.
Disable permalinks for older and newer sphinx versions.
make conf.py's work with old and new sphinx.
make layout.py work with 7.x sphinx which replaces the style
variable with styles[].
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 15 Jun 2023 20:46:59 -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)
