"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/responsive/detectors/severityauditor.py" (26 Aug 2019, 309 Bytes) of package /linux/www/roundup-2.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "severityauditor.py": 1.6.1_vs_2.0.0.

    1 
    2 def init_severity(db, cl, nodeid, newvalues):
    3     """Make sure severity is set on new bugs"""
    4     if 'severity' in newvalues and newvalues['severity']:
    5         return
    6 
    7     normal = db.severity.lookup('normal')
    8     newvalues['severity'] = normal
    9 
   10 def init(db): pass
   11     #db.bug.audit('create', init_severity)