Exemple #1
0
 def _group_emails(recipient):
     email_list = []
     for slug in recipient.split(','):
         email_list.extend(MailGroup.get_emails(slug))
     return list(set(email_list))
Exemple #2
0
 def _group_emails(recipient):
     email_list = []
     for slug in recipient.split(','):
         email_list.extend(MailGroup.get_emails(slug))
     return list(set(email_list))
Exemple #3
0
    def get_email_list(self):
        if self.signal.group:
            return MailGroup.get_emails(self.signal.group.slug)

        email_list = Template(self.signal.rules).render(Context(self.kwargs))
        return email_list.strip().replace('\r', '').replace('\n', '')