Add project and agenda URLs to the bottom of calendar descriptions

agenda_url is already used in the meeting file template, now it will
be attached to every calendar event.

The new key project_url is for the page describing the overall
project and it too, if present will be in the calendar event.

Closes: https://storyboard.openstack.org/#!/story/2000288

Change-Id: Ic9f823bf744b27f42359858e55557b36fcab8f0a
Signed-off-by: Brian (bex) Exelbierd <bex@pobox.com>
This commit is contained in:
Brian (bex) Exelbierd 2015-06-12 00:12:06 +02:00
parent 2d86450f7e
commit f2ae365d3e
2 changed files with 17 additions and 0 deletions

View File

@ -178,3 +178,11 @@ will be import into Python as a dictionary.
::
agenda_url: https://wiki.openstack.org/wiki/Meetings/Nova
* An extra property containing the project URL is saved in
``project_url`` and can be accessed in the template file as
``meeting.extras.project_url``.
::
project_url: https://wiki.openstack.org/wiki/Nova

View File

@ -51,6 +51,15 @@ class Yaml2IcalCalendar(icalendar.Calendar):
ical_descript = "\n".join((project_descript,
chair_descript,
descript_descript))
# Add URLs, if present, to the description
if 'agenda_url' in meeting.extras:
ical_descript = "\n".join((ical_descript,
"Agenda URL: %s" %
(meeting.extras['agenda_url'])))
if 'project_url' in meeting.extras:
ical_descript = "\n".join((ical_descript,
"Project URL: %s" %
(meeting.extras['project_url'])))
event.add('description', ical_descript)
# get starting date