system-config/tools/invite2summit
Jeremy Stanley 9341118edd Use foundation member IDs in invitations list
Since the foundation sometimes needs to deduplicate subsequent
invitations for the same foundation member against invitations sent
by another system, use the member ID as the first field of the
invite instead of using the Gerrit username now that we have that
information available. Use a default member ID of 0 to indicate
non-member invitees who may require additional manual deduplication
or vetting. Also log the member ID in the output of the invite mass
mailer script.

Change-Id: I86d879a5f06144a0889eb852f2cf3d555a12a7aa
2017-08-03 20:20:30 +00:00
..
README.rst Use PYTHONIOENCODING=utf-8 for invites invocation 2017-03-06 20:57:26 +00:00
atc_sample.csv Adds the script used to send summit invitations to ATC 2013-10-23 15:57:48 -07:00
codes_sample.csv Adds the script used to send summit invitations to ATC 2013-10-23 15:57:48 -07:00
send.py Use foundation member IDs in invitations list 2017-08-03 20:20:30 +00:00
settings.py.sample Add human name to sample of invites from address 2017-03-06 21:01:47 +00:00

README.rst

Summit Invite Script

It sends codes from codes.csv to ATCs in atc.csv and outputs a csv file with which name corresponds to which code.

You use it like this:

  • Copy settings.py.sample to settings.py
  • Update values in settings.py, especially EMAIL_USER, EMAIL_FROM, EMAIL_SIGNATURE and EMAIL_PASSWORD
  • Note that literal $ characters in the template which are not part of a substitution variable (such as dollar amounts) should be doubled to escape them like ... a $$600-off discount code ... so as to avoid raising ValueError: Invalid placeholder in string: line <X>, col <Y>
  • Run a test with PYTHONIOENCODING=utf-8 python send.py atc_sample.csv codes_sample.csv > sent_sample.csv

Should work on stock Ubuntu.

When ready, run the real thing with:

$ PYTHONIOENCODING=utf-8 python send.py atc.csv codes.csv > sent.csv