Skip to content

Commit 2ab2bd0

Browse files
committed
Merged in [16248] from rjsparks@nostrum.com:
Removed the IETF chair as a recipient of new IPR disclosures if there is no group or active document to send them to. Fixes ietf-tools#2727. - Legacy-Id: 16274 Note: SVN reference [16248] has been migrated to Git commit 427d9fe
2 parents 0e68f4b + 427d9fe commit 2ab2bd0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

ietf/mailtrigger/models.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2015, All Rights Reserved
1+
# Copyright The IETF Trust 2015-2019, All Rights Reserved
22

33
from django.db import models
44
from django.template import Template, Context
@@ -10,8 +10,6 @@
1010

1111
import debug # pyflakes:ignore
1212

13-
from ietf.group.models import Role
14-
1513
def clean_duplicates(addrlist):
1614
address_info = {}
1715
for a in addrlist:
@@ -295,15 +293,15 @@ def gather_ipr_updatedipr_holders(self, **kwargs):
295293
def gather_doc_ipr_group_or_ad(self, **kwargs):
296294
"""A document's group email list if the document is a group document,
297295
otherwise, the document's AD if the document is active, otherwise
298-
the IETF chair"""
296+
nobody (in the past, the default was the IETF chair)"""
299297
addrs=[]
300298
if 'doc' in kwargs:
301299
doc=kwargs['doc']
302300
if doc.group and doc.group.acronym == 'none':
303301
if doc.ad and doc.get_state_slug('draft')=='active':
304302
addrs.extend(Recipient.objects.get(slug='doc_ad').gather(**kwargs))
305303
else:
306-
addrs.extend(Role.objects.filter(group__acronym='gen',name='ad').values_list('email__address',flat=True))
304+
pass
307305
else:
308306
addrs.extend(Recipient.objects.get(slug='doc_group_mail_list').gather(**kwargs))
309307
return addrs

0 commit comments

Comments
 (0)