@@ -30,6 +30,8 @@ django.setup()
3030
3131from django .conf import settings
3232
33+ import debug # pyflakes:ignore
34+
3335from ietf .group .models import Group
3436from ietf .group .utils import get_group_ad_emails , get_group_role_emails , get_child_group_role_emails
3537from ietf .utils .aliases import dump_sublist
@@ -74,21 +76,25 @@ if __name__ == '__main__':
7476
7577 for wg in interesting_wgs .distinct ().iterator ():
7678 name = wg .acronym
77- dump_sublist (afile , vfile , name + '-ads' , settings .GROUP_VIRTUAL_DOMAIN , get_group_ad_emails (wg ))
78- dump_sublist (afile , vfile , name + '-chairs' , settings .GROUP_VIRTUAL_DOMAIN , get_group_role_emails (wg , ['chair' , 'secr' ]))
79+ dump_sublist (afile , vfile , name + '-ads' , [ 'ietf.org' , ], settings .GROUP_VIRTUAL_DOMAIN , get_group_ad_emails (wg ))
80+ dump_sublist (afile , vfile , name + '-chairs' , [ 'ietf.org' , ], settings .GROUP_VIRTUAL_DOMAIN , get_group_role_emails (wg , ['chair' , 'secr' ]))
7981
8082 # - status = Active
8183 rgs = Group .objects .filter (type = 'rg' ).all ()
84+ debug .pprint ('rgs' )
8285 active_rgs = rgs .filter (state__in = ACTIVE_STATES )
86+ debug .pprint ('active_rgs' )
8387
8488 # - activity within last year? (use concluded_date)
8589 inactive_recent_rgs = rgs .exclude (state__in = ACTIVE_STATES ).filter (time__gte = show_since )
8690 interesting_rgs = active_rgs | inactive_recent_rgs
91+ debug .pprint ('interesting_rgs' )
8792
8893 for rg in interesting_rgs .distinct ().iterator ():
8994 name = rg .acronym
95+ debug .show ('rg.acronym' )
9096 #dump_sublist('%s%s' % (name, '-ads'), get_group_ad_emails, rg, True)
91- dump_sublist (afile , vfile , name + '-chairs' , settings .GROUP_VIRTUAL_DOMAIN , get_group_role_emails (rg , ['chair' , 'secr' ]))
97+ dump_sublist (afile , vfile , name + '-chairs' , [ 'ietf.org' , 'irtf.org' , ], settings .GROUP_VIRTUAL_DOMAIN , get_group_role_emails (rg , ['chair' , 'secr' ]))
9298
9399 # Additionally, for areaz, we should list -ads and -chairs
94100 # (for every chair in active groups within the area).
@@ -97,6 +103,6 @@ if __name__ == '__main__':
97103 for area in active_areas :
98104 name = area .acronym
99105 area_ad_emails = get_group_role_emails (area , ['pre-ad' , 'ad' , 'chair' ])
100- dump_sublist (afile , vfile , name + '-ads' , settings .GROUP_VIRTUAL_DOMAIN , area_ad_emails )
101- dump_sublist (afile , vfile , name + '-chairs' , settings .GROUP_VIRTUAL_DOMAIN , (get_child_group_role_emails (area , ['chair' , 'secr' ]) | area_ad_emails ))
106+ dump_sublist (afile , vfile , name + '-ads' , [ 'ietf.org' , ], settings .GROUP_VIRTUAL_DOMAIN , area_ad_emails )
107+ dump_sublist (afile , vfile , name + '-chairs' , [ 'ietf.org' , ], settings .GROUP_VIRTUAL_DOMAIN , (get_child_group_role_emails (area , ['chair' , 'secr' ]) | area_ad_emails ))
102108
0 commit comments