app/soc/cron/student_proposal_mailer.py
changeset 2365 a66e1dd8ced7
parent 2255 783e69b54d47
--- a/app/soc/cron/student_proposal_mailer.py	Wed May 27 03:31:27 2009 +0200
+++ b/app/soc/cron/student_proposal_mailer.py	Wed May 27 03:31:58 2009 +0200
@@ -149,6 +149,7 @@
       (sender_name, sender) = default_sender
 
     # construct the contents of the email
+    # pylint: disable-msg=E1103
     student_entity = proposal.scope
     program_entity = proposal.program
 
@@ -165,7 +166,6 @@
     accepted_proposal = proposal_logic.getForFields(fields, unique=True)
 
     if accepted_proposal:
-      org_entity = accepted_proposal.org
       # use the accepted template and subject
       template = DEF_ACCEPTED_MAIL_TEMPLATE
       context['subject'] = 'Congratulations!'