Ejemplo n.º 1
0
def send_application_confirmation(event_application):
    subject = (
        f"Confirmation of application to organise Django Girls {event_application.city} workshop"
    )
    content = render_to_string('emails/organize/application_confirmation.html',
                               {
                                   'city': event_application.city,
                               })
    send_email(content, subject, event_application.get_organizers_emails())
Ejemplo n.º 2
0
def send_application_rejection_email(event_application):
    """ Sends a rejection email to all organizers who created this application
    """
    subject = (
        f"Application to organize Django Girls {event_application.city} has been reviewed"
    )
    content = render_to_string('emails/organize/rejection.html',
                               {'application': event_application})
    send_email(content, subject, event_application.get_organizers_emails())
Ejemplo n.º 3
0
def send_application_confirmation(event_application):
    subject = (
        "Confirmation of application to organise Django Girls {} workshop"
        .format(event_application.city))
    content = render_to_string(
        'emails/organize/application_confirmation.html',
        {
            'city': event_application.city,
        })
    send_email(content, subject, event_application.get_organizers_emails())
Ejemplo n.º 4
0
def send_application_rejection_email(event_application):
    """ Sends a rejection email to all organizars who created this application
    """
    subject = (
        "Application to organize Django Girls {} has been reviewed"
        .format(event_application.city))
    content = render_to_string('emails/organize/rejection.html', {
        'application': event_application
    })
    send_email(content, subject, event_application.get_organizers_emails())
Ejemplo n.º 5
0
def send_application_confirmation(event_application):
    subject = (
        "Confirmation of application to organise Django Girls {} workshop".
        format(event_application.city))
    content = render_to_string(
        'emails/organize/application_confirmation.html', {
            'city': event_application.city,
            'main_organizer_name': event_application.get_main_organizer_name()
        })
    send_email(content, subject, event_application.get_organizers_emails())
Ejemplo n.º 6
0
def send_application_deployed_email(event_application, event, email_password):
    subject = ("Congrats! Your application to organize Django Girls {} "
               "has been accepted!".format(event_application.city))
    content = render_to_string('emails/organize/event_deployed.html', {
        'event': event,
        'password': email_password,
    })
    recipients = event_application.get_organizers_emails()
    recipients.append(event.email)  # add event's djangogirls.org email
    send_email(content, subject, recipients)
Ejemplo n.º 7
0
def send_application_deployed_email(event_application, event, email_password):
    subject = (
        "Congrats! Your application to organize Django Girls {} "
        "has been accepted!".format(event_application.city))
    content = render_to_string('emails/organize/event_deployed.html', {
        'event': event,
        'password': email_password,
    })
    recipients = event_application.get_organizers_emails()
    recipients.append(event.email)  # add event's djangogirls.org email
    send_email(content, subject, recipients)
Ejemplo n.º 8
0
 def notify(self):
     context = {
         "site": Site.objects.get_current(),
         "first_name": self.user.first_name,
         "title": self.proposal.title,
     }
     send_email(
         context=context,
         template="emails/reviewers/new.html",
         subject=_("[PyConES 2016] Tienes una nueva propuesta para revisar"),
         to=self.user.email,
         from_email="*****@*****.**"
     )
Ejemplo n.º 9
0
 def notify(self):
     context = {
         "site": Site.objects.get_current(),
         "first_name": self.user.first_name,
         "title": self.proposal.title,
     }
     send_email(
         context=context,
         template="emails/reviewers/new.html",
         subject=_("[PyConES 2016] Tienes una nueva propuesta para revisar"),
         to=self.user.email,
         from_email="PyConES 2016 <*****@*****.**>"
     )
Ejemplo n.º 10
0
 def notify(self):
     """Sends an email to the creator of the proposal with a confirmation email. The emails has a
     link to edit the proposal.
     """
     if not self.code:
         self.code = random_string(64)
     context = self.notification_email_context()
     send_email(
         context=context,
         template="emails/proposals/confirmation.html",
         subject=_("[PyConES 2016] Confirmación de propuesta de charla"),
         to=self.speaker.email,
         from_email="*****@*****.**")
     self.notified = True
     self.save()
Ejemplo n.º 11
0
def send_application_notification(event_application):
    """
    Triggered when user submits application to organize new Django Girls event
    Sent to [email protected] as a notification with reply-to to organizers
    who applied
    """
    subject = ("New request to organise Django Girls {}, {}".format(
        event_application.city, event_application.get_country_display()))
    content = render_to_string('emails/organize/application_notification.html',
                               {
                                   'application': event_application,
                               })
    send_email(content,
               subject, ['*****@*****.**'],
               reply_to=event_application.get_organizers_emails())
Ejemplo n.º 12
0
 def notify(self):
     """Sends an email to the creator of the proposal with a confirmation email. The emails has a
     link to edit the proposal.
     """
     if not self.code:
         self.code = random_string(64)
     context = self.notification_email_context()
     send_email(
         context=context,
         template="emails/proposals/confirmation.html",
         subject=_("[PyConES 2016] Confirmación de propuesta de charla"),
         to=self.speaker.email,
         from_email="*****@*****.**"
     )
     self.notified = True
     self.save()
Ejemplo n.º 13
0
def send_application_notification(event_application):
    """
    Triggered when user submits application to organize new Django Girls event
    Sent to [email protected] as a notification with reply-to to organizers
    who applied
    """
    subject = (
        "New request to organise Django Girls {}, {}"
        .format(event_application.city, event_application.get_country_display())
    )
    content = render_to_string(
        'emails/organize/application_notification.html', {
            'application': event_application,
        })
    send_email(content, subject, ['*****@*****.**'],
               reply_to=event_application.get_organizers_emails())
Ejemplo n.º 14
0
 def notify_acceptance(self):
     """Sends an email to the creator of the proposal with an email with the resolution of the acceptance or not
     of his proposal.
     """
     context = self.notification_email_context()
     if self.accepted is None:
         return
     template = "emails/proposals/accepted.html" if self.accepted else "emails/proposals/rejected.html"
     send_email(
         context=context,
         template=template,
         subject=_("[PyConES 2016] Notificación de propuesta de charla"),
         to=self.speaker.email,
         from_email="*****@*****.**")
     self.accepted_notified = True
     self.save()
Ejemplo n.º 15
0
 def notify_acceptance(self):
     """Sends an email to the creator of the proposal with an email with the resolution of the acceptance or not
     of his proposal.
     """
     context = self.notification_email_context()
     if self.accepted is None:
         return
     template = "emails/proposals/accepted.html" if self.accepted else "emails/proposals/rejected.html"
     send_email(
         context=context,
         template=template,
         subject=_("[PyConES 2016] Notificación de propuesta de charla"),
         to=self.speaker.email,
         from_email="*****@*****.**"
     )
     self.accepted_notified = True
     self.save()