Merged in [8948] from rjsparks@nostrum.com:

Capture out-of-area ADs in draft and group aliases. Fixes #1592.
 - Legacy-Id: 8980
Note: SVN reference [8948] has been migrated to Git commit 0c4ef8c8f6
This commit is contained in:
Henrik Levkowetz 2015-02-04 22:39:03 +00:00
commit bcfa4aaf1d

View file

@ -56,12 +56,13 @@ def get_group_ads_emails(wg):
if wg.acronym == 'none':
return []
# Make sure the assigned AD is included (in case that is not one of the area ADs
ad_emails = set([wg.ad_role() and wg.ad_role().email.address])
if wg.parent and wg.parent.acronym != 'none':
# By default, we should use _current_ list of ads!
return get_area_ads_emails(wg.parent)
# Include the _current_ list of ads for the area!
ad_emails.update(get_area_ads_emails(wg.parent))
# As fallback, just return the single ad within the wg
return [wg.ad_role() and wg.ad_role().email.address]
return list(ad_emails)
def get_group_chairs_emails(wg):
" Get list of area chairs' emails for a given WG "