Skip to content

Commit bb14800

Browse files
committed
Fixed the plenary display code for the text agenda to use the non-proxy plenary information to identify the plenaries, matching other previous changes from the agenda branch.
- Legacy-Id: 6383
1 parent dbc1762 commit bb14800

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

ietf/meeting/helpers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,11 @@ def time_desc(self):
8181
def is_plenary(self):
8282
return self.timeslot.is_plenary
8383

84-
@property
8584
def is_plenaryw(self):
86-
return self.timeslot.is_plenary_type("plenaryw")
85+
return self.timeslot.is_plenary_type("opsplenary")
8786

88-
@property
8987
def is_plenaryt(self):
90-
return self.timeslot.is_plenary_type("plenaryt")
88+
return self.timeslot.is_plenary_type("techplenary")
9189

9290
@property
9391
def tzname(self):

ietf/meeting/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,8 @@ def js_identifier(self):
355355
def is_plenary(self):
356356
return self.type_id == "plenary"
357357

358-
@property
359358
def is_plenary_type(self, name, agenda=None):
360-
return self.scheduledsessions_at_same_time(agenda)[0].acronym == name
359+
return self.type_id == "plenary" and self.sessions.all()[0].short == name
361360

362361
@property
363362
def slot_decor(self):

ietf/templates/meeting/agenda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
{{ slot.meeting_date|date:"l"|upper }}, {{ slot.meeting_date|date:"F j, Y" }}{% if slot.reg_info %}
1515
{{ slot.registration.time_desc }} {{ slot.registration.name }}{% if venue.reg_area_name %} - {{ venue.reg_area_name }}{% endif %}{% endif %}
1616
{% endifchanged %}{% if slot.session_name %}{% if slot.break_info %}{{ slot.break_info.time_desc }} {{ slot.break_info.name }}{% if venue.break_area_name and slot.break_info.show_location %} - {{ venue.break_area_name }}{% endif %}
17-
{% endif %}{{ slot.time_desc }} {{ slot.session_name }}{% if slot.is_plenary %} - {{ slot.room_name }}{% endif %}{% if slot.has_plenaryw %}
17+
{% endif %}{{ slot.time_desc }} {{ slot.session_name }}{% if slot.is_plenary %} - {{ slot.room_name }}{% endif %}{% if slot.is_plenaryw %}
1818

19-
{{ plenaryw_agenda }}{% endif %}{% if slot.has_plenaryt %}
19+
{{ plenaryw_agenda }}{% endif %}{% if slot.is_plenaryt %}
2020

2121
{{ plenaryt_agenda }}{% endif %}{% if not slot.is_plenary %}{% for ss in slot.scheduledsessions_by_area|dictsort:"area" %}{% if ss.info.session %}
2222
{{ ss.info.room_name|ljust:14 }} {% if ss.info.area %}{{ ss.info.area|upper|ljust:4 }} {{ ss.info.acronym|ljust:10 }} {% endif %}{{ ss.info.acronym_name }} {{ ss.info.group_type_str }}{% if ss.info.special_agenda_note %} - {{ ss.info.special_agenda_note }}{% endif %}{% endif %}{% endfor %}{% endif %}

0 commit comments

Comments
 (0)