Mercurial > p > roundup > code
view website/issues/detectors/severityauditor.py @ 5114:f74300d1494e
issue2550854: including new field in All text* search.
Fixed documentation in customizing.txt. The default for indexme on
String fileds is 'no' not 'yes'. So to get a new string field into
the full text/all text index you need to use String(indexme='yes').
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 01 Jul 2016 17:10:09 -0400 |
| parents | c2d0d3e9099d |
| children | 0942fe89e82e |
line wrap: on
line source
def init_severity(db, cl, nodeid, newvalues): """Make sure severity is set on new issues""" if newvalues.has_key('severity') and newvalues['severity']: return normal = db.severity.lookup('normal') newvalues['severity'] = normal def init(db): db.issue.audit('create', init_severity)
