view website/issues/detectors/statusauditor.py @ 6309:b0f9266e4ba2

Change output to html4. Changed document type to be compatible with html5 so don't generate xhtml. Still work to do to remove some xhtml in templates.
author John Rouillard <rouilj@ieee.org>
date Thu, 24 Dec 2020 00:14:06 -0500
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/