Changeset 435ceab


Ignore:
Timestamp:
Oct 17, 2011, 12:05:23 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
55ffcd1
Parents:
b6c7a44
git-author:
Alex Dehnert <adehnert@…> (09/28/11 12:50:41)
git-committer:
Alex Dehnert <adehnert@…> (10/17/11 00:05:23)
Message:

Add reporting of diffs to SAO

Location:
asadb
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/diffs.py

    rb6c7a44 r435ceab  
    4343        self.template = template
    4444        self.interesting_signatories = signatories
     45        self.care_about_groups = True
     46        self.care_about_signatories = True
    4547
    4648    def start_run(self, since, now, ):
     
    9294        message = "\n\n".join(self.updates)
    9395        signatories_message = "\n".join(self.signatory_updates)
    94         if self.updates or self.signatory_updates:
     96        if (self.care_about_groups and self.updates) or (self.care_about_signatories and self.signatory_updates):
    9597            pass
    9698        else:
     
    132134        signatories=['president', 'treasurer', 'financial', ]
    133135    ))
     136    sao_callback = StaticMailCallback(
     137        fields=['name', 'abbreviation', 'officer_email', ],
     138        address='funds@mit.edu',
     139        template='groups/diffs/sao-update-mail.txt',
     140        signatories=['president', 'treasurer', 'financial', ]
     141    )
     142    sao_callback.care_about_groups = False
     143    callbacks.append(sao_callback)
    134144    return callbacks
    135145
Note: See TracChangeset for help on using the changeset viewer.