Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 6110:af81e7a4302f
don't get confused by python-future making Python 3 package names available under Python 2 (but only with Python 2 functionality)
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Fri, 28 Feb 2020 08:48:51 +0000 |
| 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)
