[sysadmin-bin] Add each expired member on the need_renew dict so that members_list is populated accordingly
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Add each expired member on the need_renew dict so that members_list is populated accordingly
- Date: Thu, 4 Dec 2014 19:10:45 +0000 (UTC)
commit bee475617a75b4829a84a708a0966557aed0e7f2
Author: Andrea Veri <av gnome org>
Date: Thu Dec 4 20:10:38 2014 +0100
Add each expired member on the need_renew dict so that members_list is populated accordingly
membership/foundation-operations.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index d6f0cf1..c80ee20 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -128,6 +128,7 @@ def _sync_foundation_with_mailusers():
def remove_expired_memberships_from_foundation():
now = time()
members_list = ''
+ need_renew = {}
for member in foundationmembers:
last_renewed_on_attr = _get_attributes_from_ldap(member, 'LastRenewedOn')
@@ -140,7 +141,8 @@ def remove_expired_memberships_from_foundation():
remove_user_from_foundation_member(member)
send_form_letters(expired_membership_form_letter, mail_attr, common_name_attr,
last_renewed_on_attr)
- members_list += common_name_attr + ',' + ' ' + renewed_people[common_name_attr] + '\n'
+ need_renew.update({common_name_attr: last_renewed_on_attr})
+ members_list += common_name_attr + ',' + ' ' + need_renew[common_name_attr] + '\n'
send_form_letters(renewals_to_foundation_list, 'foundation-list gnome org', common_name_attr,
members_list)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]