Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 6651:da6c9050a79e
Fix modification of Cache_Control
The previous code modified the Cache_Control dictionary in the Client
class (in one of the cgi tests) which made a later test in
test_liveserver fail
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Mon, 02 May 2022 14:25:15 +0200 |
| 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)
