Mail Recipients

Recipient Triggers Template Code
session_requester session_scheduled None
    def gather_session_requester(self, **kwargs):
        addrs=[]
        if 'session' in kwargs:
            session = kwargs['session']
            from ietf.meeting.models import SchedulingEvent
            first_event = SchedulingEvent.objects.filter(session=session).select_related('by').order_by('time', 'id').first()
            if first_event and first_event.status_id in ['appw', 'schedw']:
                addrs.append(first_event.by.role_email('chair').address)
        return addrs