[extensions-web] review: Use "recipient_list", not "reviewers"



commit 38a987cd500193182a0e7596a3ed8364f9b576eb
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Apr 1 22:34:45 2012 -0400

    review: Use "recipient_list", not "reviewers"

 sweettooth/review/views.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 833e9cd..5f18364 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -317,8 +317,6 @@ def send_email_on_submitted(sender, request, version, **kwargs):
                 extension=extension,
                 url=url)
 
-    reviewers = get_all_reviewers().values_list('email', flat=True)
-
     subject = render_to_string('review/submitted_mail_subject.txt', data, Context(autoescape=False))
     subject = subject.strip()
     subject = subject.replace('\n', '')
@@ -326,10 +324,12 @@ def send_email_on_submitted(sender, request, version, **kwargs):
 
     body = render_to_string('review/submitted_mail.txt', data, Context(autoescape=False)).strip()
 
+    recipient_list = get_all_reviewers().values_list('email', flat=True)
+
     extra_headers = {'X-SweetTooth-Purpose': 'NewExtension',
                      'X-SweetTooth-ExtensionCreator': extension.creator.username}
 
-    message = EmailMessage(subject=subject, body=body, to=reviewers, headers=extra_headers)
+    message = EmailMessage(subject=subject, body=body, to=recipient_list, headers=extra_headers)
     message.send()
 
 models.submitted_for_review.connect(send_email_on_submitted)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]