Changeset 2a587e4


Ignore:
Timestamp:
Feb 7, 2012, 12:09:58 AM (14 years ago)
Author:
ASA Group Database <asa-db@…>
Branches:
master, space-access, stable, stage
Children:
a86a924, bb48649
Parents:
ffdfde5
git-author:
Alex Dehnert <adehnert@…> (02/07/12 00:03:44)
git-committer:
ASA Group Database <asa-db@…> (02/07/12 00:09:58)
Message:

Misc. fixes for find_missing_transition.py

  • Add @mit.edu as necessary
  • Don't send messages to board members
  • Comment out the mail sending (uncomment to actually send...)
  • Minor editing of the template language
Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/find_missing_transition.py

    • Property mode changed from 100644 to 100755
    r8cf11c9 r2a587e4  
    4141    return fail, problems
    4242
     43def canonicalize_email(email):
     44    if '@' in email: return email
     45    elif email == '': return ''
     46    else: return email + "@mit.edu"
     47
    4348def officers_lists(fd, ):
    4449    reader = csv.DictReader(fd)
     
    4651    for d in reader:
    4752        pk = int(d['ASA_STUDENT_GROUP_KEY'])
    48         lists[pk] = d['OFFICER_EMAIL']
     53        lists[pk] = canonicalize_email(d['OFFICER_EMAIL'])
    4954    return lists
    5055
     
    7075                from_email='asa-exec@mit.edu',
    7176                to=to,
    72                 bcc=['asa-admin@mit.edu' , 'asa-db-outgoing@mit.edu'],
     77                bcc=['asa-db-outgoing@mit.edu'],
    7378            )
    7479            emails.append(email)
    7580
    7681    connection = mail.get_connection()
    77     connection.send_messages(emails)
     82    #connection.send_messages(emails)
     83    for email in emails: print email.subject
     84    print len(emails)
    7885
    7986if __name__ == '__main__':
  • asadb/template/groups/letters/missing-transition.txt

    r1aaa525 r2a587e4  
    33   We believe that you have not yet fully updated your entry in the new ASA Group Database. As we have said previously (e.g., in an email to asa-official@mit.edu on 1/23/2012), the ASA is transitioning to a new database.  As part of this transition, groups are responsible for inputting most of their group's information to ensure that it is up-to-date.  MIT offices will be starting to use the new database now. It is critical to your group's ability to continue making financial transactions and reserving space that you list your signatories soon. Additionally, without updating basic information such as officer's email, the ASA will be unable to keep you updated on important news like midway, funding, and application deadlines.
    44
    5 More information about accessing and using the new Database and which fields need to be updated is posted at: http://web.mit.edu/asa/database/
     5More information about accessing and using the new Database and which fields need to be updated is posted at: http://web.mit.edu/asa/database/.
    66
     7Your group's page can be found at https://asa.mit.edu/groups/{{group.pk}}/.
    78
    89In particular, we believe that your group's entry has the following issues:
     
    1011{% endfor %}
    1112
    12 We appreciate you cooperation in fixing these quickly. If you have any questions, comments, or concerns, please contact asa-exec@mit.edu.
     13We appreciate you cooperation in fixing these quickly. If you believe this message to be in error, please be sure to contact us at asa-exec@mit.edu.
     14
     15If you have questions, comments, concerns, or suggestions for improving the new database, please let us know.
    1316
    1417Thanks,
Note: See TracChangeset for help on using the changeset viewer.