[Python-checkins] r88789 - tracker/instances/python-dev/detectors/autonosy.py (original) (raw)

ezio.melotti python-checkins at python.org
Wed Mar 23 16:36:31 CET 2011


Author: ezio.melotti Date: Wed Mar 23 16:36:31 2011 New Revision: 88789

Log: #368: update the nosy list only when necessary.

Modified: tracker/instances/python-dev/detectors/autonosy.py

Modified: tracker/instances/python-dev/detectors/autonosy.py

--- tracker/instances/python-dev/detectors/autonosy.py (original) +++ tracker/instances/python-dev/detectors/autonosy.py Wed Mar 23 16:36:31 2011 @@ -1,5 +1,8 @@ -# Auditor to automatically add users as nosy to issues when -# the component field gets set +# This auditor automatically adds users and release managers to the nosy +# list when the component fields gets set and the priority is changed to +# 'release blocker' respectively. +# See also the nosyreaction.py script (they should probably be merged to a +# single script).

Python 2.3 ... 2.6 compatibility:

from roundup.anypy.sets_ import set @@ -14,19 +17,26 @@ def autonosy(db, cl, nodeid, newvalues): components = newvalues.get('components', [])

@@ -49,9 +59,11 @@ for version in versions: name = db.version.get(version, 'name') if name in RELEASE_MANAGERS:

def init(db):



More information about the Python-checkins mailing list