def notify(self, event): email = WelcomeEmail(to=event["email"], data=event) current_domain.send_email(email)
def notify(self, domain_event): email = WelcomeEmail(to=domain_event.person.email, data=domain_event.person.to_dict()) current_domain.send_email(email)
def notify(self, domain_event): email = WelcomeEmail(to=domain_event["person"]["email"], data=domain_event["person"]) current_domain.send_email(email)
def notify(self, event): email = WelcomeEmail(to=event.email, data=event.to_dict()) current_domain.send_email(email)
def notify(self, domain_event): email = WelcomeEmail(to=domain_event['person']['email'], data=domain_event['person']) current_domain.send_email(email)