Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 8100:e97caa8e4dae
issue2551315 - Allow admin settable max number of rows to be returned by rest interface.
Documented use of RestfulInstance.max_response_row_size to limit data
returned from rest request.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 17 Jul 2024 22:54:28 -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)
