conf_site/reviews/models.py
def send_email(self):
        """Returns a list of speakers without email addresses."""
        email_messages = []
        unemailed = []
        # Create a message for each email address.
        # This is necessary because we are not using BCC.
        for proposal in self.proposals.all():
            # In order to support the "variable substitution"
            # supported by the previous reviews system, the
            # message needs to be templated anew for each
            # proposal.
            message_body = Template(self.body).render(
                Context({"proposal": proposal.notification_email_context()})
            )
            for speaker in proposal.speakers():
                if speaker.email:
                    datamessage_tuple = (
                        self.subject,
                        message_body,
                        self.from_address,
                        [speaker.email],
                    )
                    email_messages.append(datamessage_tuple)
                else:
                    unemailed.append(speaker)
        send_mass_mail(email_messages)
        return unemailed
Returns a list of speakers without email addresses.
Returns a list of speakers without email addresses.
Returns a list of speakers without email addresses .
def send_email(self):
        email_messages = []
        unemailed = []
        for proposal in self.proposals.all():
            message_body = Template(self.body).render(
                Context({"proposal": proposal.notification_email_context()})
            )
            for speaker in proposal.speakers():
                if speaker.email:
                    datamessage_tuple = (
                        self.subject,
                        message_body,
                        self.from_address,
                        [speaker.email],
                    )
                    email_messages.append(datamessage_tuple)
                else:
                    unemailed.append(speaker)
        send_mass_mail(email_messages)
        return unemailed
def send_email ( self ) : email_messages = [ ] unemailed = [ ] for proposal in self . proposals . all ( ) : message_body = Template ( self . body ) . render ( Context ( { "proposal" : proposal . notification_email_context ( ) } ) ) for speaker in proposal . speakers ( ) : if speaker . email : datamessage_tuple = ( self . subject , message_body , self . from_address , [ speaker . email ] , ) email_messages . append ( datamessage_tuple ) else : unemailed . append ( speaker ) send_mass_mail ( email_messages ) return unemailed
Returns a list of speakers without email addresses.
Returns a list of speakers without email addresses .
"""Returns a list of speakers without email addresses.""" # Create a message for each email address. # This is necessary because we are not using BCC. # In order to support the "variable substitution" # supported by the previous reviews system, the # message needs to be templated anew for each # proposal.
self