Render result mail announcement

This change adds final result mail announcement so that officials can
cross check the result before sending the announcement.

The document will be available at:
https://governance.openstack.org/election/_sources/results/

Change-Id: Ie3181d98b55ebf032f9c12603c8a98d37bfb9881
This commit is contained in:
Tristan Cacqueray 2017-02-02 02:09:25 +00:00
parent d45c1f340b
commit abaa751c2a
3 changed files with 50 additions and 0 deletions

View File

@ -50,6 +50,7 @@ def build_archive(serie, list_type):
return
db = yaml.safe_load(open(db_file))
# Check for appointed or incumbent footnote
db['tc_seats'] = utils.conf['tc_seats']
db['tags'] = {}
for project in db['projects']:
for candidate in db['candidates'][project]:
@ -61,6 +62,17 @@ def build_archive(serie, list_type):
"results", serie, "%s.rst" % list_type)
template_name = "%s_archive.jinja" % list_type
template_dir = os.path.join(".", "doc", "source", "_exts")
with open(output, "wb") as out:
out.write(
render_template(
template_name,
db,
template_dir=template_dir
).encode('utf-8')
)
output = os.path.join(".", "doc", "source",
"results", serie, "announce_%s.rst" % list_type)
template_name = "%s_announce.jinja" % list_type
with open(output, "wb") as out:
out.write(
render_template(

View File

@ -0,0 +1,20 @@
To: openstack-dev@lists.openstack.org, openstack-announce@lists.openstack.org
Subject: [all][elections] Project Team Lead Election Conclusion and Results
Thank you to the electorate, to all those who voted and to all candidates who put their name forward for Project Team Lead (PTL) in this election. A healthy, open process breeds trust in our decision making capability thank you to all those who make this process possible.
Now for the results of the PTL election process, please join me in extending congratulations to the following PTLs:
{% for project in projects %}
* {{ project.replace('_', ' ').ljust(25) }} : {% for candidate in candidates[project] %}{% if candidate['elected'] %}{{ candidate['fullname'].ljust(44) }}{% endif %}{% endfor %}
{% endfor %}
Elections:
{% for project in projects %}{% if project in elections_results %}
* {{ project }}: {{ elections_results[project] }}
{% endif %}{% endfor %}
Election process details and results are also available here: https://governance.openstack.org/election/
Thank you to all involved in the PTL election process,

View File

@ -0,0 +1,18 @@
To: openstack-dev@lists.openstack.org, openstack-announce@lists.openstack.org
Subject: [all][elections] Technical Committee Election Results
Please join me in congratulating the {{ tc_seats }} newly elected members of the Technical Committe (TC).
{% for candidate in candidates['TC'] %}{% if candidate['elected'] %}
{{ candidate['fullname'] }} ({{ candidate['ircname'] }})
{% endif %}{% endfor %}
Full results: {{ elections_results['TC'] }}
Election process details and results are also available here: https://governance.openstack.org/election/
Thank you to all candidates who stood for election, having a good group of candidates helps engage the community in our democratic process.
Thank you to all who voted and who encouraged others to vote. We need to ensure your voice is heard.
Thank you for another great round.