web/hosts/issues/detectors newissues.py,1.1,1.2
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/web/hosts/issues/detectors
In directory purcel:/tmp/cvs-serv15623/hosts/issues/detectors
Modified Files:
newissues.py
Log Message:
don't inform users about new issues who already are on the nosy list;
fixes http://issues.fresco.org/bug234
Index: newissues.py
===================================================================
RCS file: /cvs/fresco/web/hosts/issues/detectors/newissues.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- newissues.py 14 Jan 2003 03:38:35 -0000 1.1
+++ newissues.py 29 Jan 2003 01:41:35 -0000 1.2
@@ -8,10 +8,12 @@
# determine all users to notify
components = cl.get(nodeid, 'components')
+ nosy = cl.get(nodeid, 'nosy')
+
users = []
for u in db.user.list():
for c in components:
- if c in db.user.get(u, 'notify_on_new_issues'):
+ if c in db.user.get(u, 'notify_on_new_issues') and not u in nosy:
users.append(db.user.get(u, 'address'))
break