1. Robot Mirror
  2. bugs.python.org

Commits

martin.v.loewis  committed 8522237

Set default priority to normal.

  • Participants
  • Parent commits e0bb0a7
  • Branches default

Comments (0)

Files changed (1)

File detectors/priorityauditor.py

View file
  • Ignore whitespace
+def init_priority(db, cl, nodeid, newvalues):
+    """ Make sure the priority is set on new issues"""
+
+    if newvalues.has_key('priority') and newvalues['priority']:
+        return
+
+    normal = db.priority.lookup('normal')
+    newvalues['priority'] = normal
+
+def init(db):
+    db.issue.audit('create', init_priority)