Changeset 2a587e4
- Timestamp:
- Feb 7, 2012, 12:09:58 AM (14 years ago)
- 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)
- Location:
- asadb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/find_missing_transition.py
- Property mode changed from 100644 to 100755
r8cf11c9 r2a587e4 41 41 return fail, problems 42 42 43 def canonicalize_email(email): 44 if '@' in email: return email 45 elif email == '': return '' 46 else: return email + "@mit.edu" 47 43 48 def officers_lists(fd, ): 44 49 reader = csv.DictReader(fd) … … 46 51 for d in reader: 47 52 pk = int(d['ASA_STUDENT_GROUP_KEY']) 48 lists[pk] = d['OFFICER_EMAIL']53 lists[pk] = canonicalize_email(d['OFFICER_EMAIL']) 49 54 return lists 50 55 … … 70 75 from_email='asa-exec@mit.edu', 71 76 to=to, 72 bcc=['asa- admin@mit.edu' , 'asa-db-outgoing@mit.edu'],77 bcc=['asa-db-outgoing@mit.edu'], 73 78 ) 74 79 emails.append(email) 75 80 76 81 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) 78 85 79 86 if __name__ == '__main__': -
asadb/template/groups/letters/missing-transition.txt
r1aaa525 r2a587e4 3 3 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. 4 4 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/ 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/. 6 6 7 Your group's page can be found at https://asa.mit.edu/groups/{{group.pk}}/. 7 8 8 9 In particular, we believe that your group's entry has the following issues: … … 10 11 {% endfor %} 11 12 12 We appreciate you cooperation in fixing these quickly. If you have any questions, comments, or concerns, please contact asa-exec@mit.edu. 13 We 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 15 If you have questions, comments, concerns, or suggestions for improving the new database, please let us know. 13 16 14 17 Thanks,
Note: See TracChangeset
for help on using the changeset viewer.