- Timestamp:
- Aug 28, 2012, 1:54:00 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 8068f6d, 3af5d74
- Parents:
- 0851637
- git-author:
- Alex Dehnert <adehnert@…> (08/28/12 01:54:00)
- git-committer:
- ASA Group Database <asa-db@…> (08/28/12 01:54:00)
- Location:
- asadb
- Files:
-
- 2 edited
-
groups/find_missing_transition.py (modified) (3 diffs)
-
template/groups/letters/missing-transition.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/find_missing_transition.py
r0851637 r26fd6cf 32 32 def check_group(group, roles, ): 33 33 problems = [] 34 fail = False34 fail = True 35 35 if group.officer_email or group.description: 36 36 pass … … 42 42 problems.append(msg) 43 43 if cause_fail: fail = True 44 problems.append("You have not contacted us about being unsuspended (or should do so again)") 44 45 return fail, problems 45 46 … … 62 63 tmpl = get_template('groups/letters/missing-transition.txt') 63 64 emails = [] 64 for group in groups.models.Group. active_groups.all():65 for group in groups.models.Group.objects.filter(group_status__slug='suspended'): 65 66 fail, problems = check_group(group, roles, ) 66 67 if fail: -
asadb/template/groups/letters/missing-transition.txt
r0851637 r26fd6cf 1 1 {% autoescape off %} 2 Hello {{group.name}}, 3 4 We're following up on our email from July 31st (see below). You still 5 appear to be suspended, and are consequently currently scheduled for 6 derecognition *this Friday*. 7 8 The following problems (at least) exist with your database entry: 9 {% for prob in problems %}* {{prob}} 10 {% endfor %} 11 12 Please contact us (asa-exec@mit.edu) by this Friday (August 31st) if you wish 13 to remain active. We prefer that you fix the listed problems first, but can 14 give you some extra time if needed. 15 16 You can view your ASA Database entry at 17 https://asa.mit.edu/groups/{{group.pk}}, and the listed president, treasurer, 18 and group admin can update it. If they are not available, please contact 19 asa-exec@mit.edu promptly, copying your president and officers' list. 20 21 If you have any questions or concerns, please contact us at asa-exec@mit.edu. 22 Make sure to include your group and database URL (just replying to this email 23 is fine). 24 25 Thanks, 26 Alex Dehnert 27 ASA Executive Board 28 29 === 30 2 31 Hello again {{group.name}}, 3 32 We contacted you several months ago (see below) informing you that we … … 7 36 8 37 In particular, the following problems apply: 9 {% for prob in problems %}* {{prob}} 10 {% endfor %} 38 [...] 11 39 12 40 In order to get your group unsuspended, you should first update your database
Note: See TracChangeset
for help on using the changeset viewer.