view website/issues/detectors/statusauditor.py @ 5742:97d7faebef0a

Test @apiver version parsing using bogus version. Test /rest, /rest/ for returned data, /rest/summary, /rest/summary/ for success and /rest/notthere, /rest/notthere/ for a 404.
author John Rouillard <rouilj@ieee.org>
date Wed, 29 May 2019 19:50:32 -0400
parents 0942fe89e82e
children 13e8f188f8dd
line wrap: on
line source

def preset_new(db, cl, nodeid, newvalues):
    """ Make sure the status is set on new issues"""

    if 'status' in newvalues and newvalues['status']:
        return

    new = db.status.lookup('new')
    newvalues['status'] = new


def init(db):
    # fire before changes are made
    db.issue.audit('create', preset_new)

Roundup Issue Tracker: http://roundup-tracker.org/