Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[bug 879757] Automated poll emails to be sent to reps council alias.
  • Loading branch information
glogiotatidis committed Oct 17, 2013
1 parent b41c901 commit c13c65e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion remo/remozilla/tasks.py
Expand Up @@ -97,7 +97,7 @@ def fetch_bugs(components=COMPONENTS, days=None):
if (flag['status'] == '?'
and flag['name'] == 'remo-review'
and flag['requestee']['name'] == (
settings.AUTOMATED_POLL_NEEDINFO_EMAIL)):
settings.REPS_COUNCIL_ALIAS)):
bug.council_vote_requested = True

comments = bdata.get('comments', [])
Expand Down
3 changes: 1 addition & 2 deletions remo/settings/base.py
Expand Up @@ -119,8 +119,7 @@


REPS_MENTORS_LIST = 'reps-mentors@lists.mozilla.org'
REPS_COUNCIL_LIST = 'reps-council@lists.mozilla.org'
AUTOMATED_POLL_NEEDINFO_EMAIL = 'reps-council@mozilla.com'
REPS_COUNCIL_ALIAS = 'reps-council@mozilla.com'

# Mozillians API
MOZILLIANS_API_BASE = 'https://mozillians.org'
Expand Down
2 changes: 1 addition & 1 deletion remo/voting/tasks.py
Expand Up @@ -22,7 +22,7 @@ def send_voting_mail(voting_id, subject, email_template):
if poll.automated_poll:
message = render_to_string(email_template, data)
send_mail(subject, message, settings.FROM_EMAIL,
[settings.REPS_COUNCIL_LIST])
[settings.REPS_COUNCIL_ALIAS])
else:
user_list = User.objects.filter(groups=poll.valid_groups)

Expand Down
4 changes: 2 additions & 2 deletions remo/voting/tests/test_models.py
Expand Up @@ -61,10 +61,10 @@ def test_send_email_to_council_members(self):
automated_poll.save()
eq_(len(mail.outbox), 6)
for email in mail.outbox:
if settings.REPS_COUNCIL_LIST in email.to:
if settings.REPS_COUNCIL_ALIAS in email.to:
break
else:
raise Exception('No email sent to REPS_COUNCIL_LIST')
raise Exception('No email sent to REPS_COUNCIL_ALIAS')



Expand Down

0 comments on commit c13c65e

Please sign in to comment.