"Fossies" - the Fresh Open Source Software Archive

Member "roundup-2.0.0/share/roundup/templates/devel/detectors/statusauditor.py" (26 Aug 2019, 325 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 "statusauditor.py": 1.6.1_vs_2.0.0.

    1 def preset_new(db, cl, nodeid, newvalues):
    2     """ Make sure the status is set on new bugs"""
    3 
    4     if 'status' in newvalues and newvalues['status']:
    5         return
    6 
    7     new = db.status.lookup('new')
    8     newvalues['status'] = new
    9 
   10 
   11 def init(db): pass
   12     # fire before changes are made
   13     #db.bug.audit('create', preset_new)