Skip to main content

Mail recipients

Recipient Triggers Template Code
doc_discussing_ads sub_new_version
    def gather_doc_discussing_ads(self, **kwargs):
        addrs=[]
        if 'doc' in kwargs:
            doc = kwargs['doc']
            active_ballot = doc.active_ballot()
            if active_ballot:
                for balloter, pos in active_ballot.active_balloter_positions().items():
                    if pos and pos.pos_id == "discuss":
                        addrs.append(balloter.role_email("ad").address)
        return addrs