Ejemplo n.º 1
0
 def mail_receivers(self):
     ticket = self._ticket
     ticket_id = ticket.ticket_id
     target = self._target
     to_receivers = Mute.filter('ticket', target.name,
                                ticket_id, [ticket.author, ])
     cc_recievers = Mute.filter('ticket', target.name,
                                ticket_id, ticket.participants)
     toaddr = Mail.addrs_by_usernames(to_receivers, target)
     ccaddr = Mail.addrs_by_usernames(cc_recievers, target)
     return toaddr, ccaddr
Ejemplo n.º 2
0
 def noti_receivers(self):
     participants = self._ticket.participants
     mentions = get_mentions_from_text(self._content)
     extra = [self._ticket.author, self._pullreq.to_proj.owner_id]
     receivers = set(participants + mentions + extra)
     receivers.discard(self._sender)
     return Mute.filter('ticket', self._target.name,
                        self._pullreq.ticket_id, receivers)
Ejemplo n.º 3
0
 def noti_receivers(self):
     participants = self._ticket.participants
     extra = [self._ticket.author, self._pull.to_proj.owner_id]
     receivers = set(participants + extra)
     return Mute.filter('ticket',
                        self._target.name,
                        self._pull.ticket_id,
                        receivers)
Ejemplo n.º 4
0
 def noti_receivers(self):
     participants = self._ticket.participants
     extra = [self._ticket.author, self._pull.to_proj.owner_id]
     receivers = set(participants + extra)
     return Mute.filter('ticket', self._target.name, self._pull.ticket_id,
                        receivers)