Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 7974:4dcc64d0138e
doc: classhelper translation, advanced config w/ roles endpoint
Added info on how to translate default title and data-popup-title.
Also added advanced config section on deploying a new roles rest
endpoint and changing classhelper to use it.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 21 May 2024 20:03:56 -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)
