def _process(self): program = track_settings.get(self.event, 'program') render_mode = track_settings.get(self.event, 'program_render_mode') program = RENDER_MODE_WRAPPER_MAP[render_mode](program) tracks = (Track.query.with_parent(self.event) .filter(~Track.track_group.has()) .all()) track_groups = self.event.track_groups items = sorted(tracks + track_groups, key=attrgetter('position')) return WPDisplayTracks.render_template('display.html', self.event, program=program, items=items)
def _process(self): program = track_settings.get(self.event, 'program') render_mode = track_settings.get(self.event, 'program_render_mode') program = RENDER_MODE_WRAPPER_MAP[render_mode](program) tracks = (Track.query.with_parent(self.event) .options(subqueryload('conveners'), subqueryload('abstract_reviewers')) .order_by(Track.position) .all()) return WPDisplayTracks.render_template('display.html', self.event, program=program, tracks=tracks)
def _process(self): program = track_settings.get(self.event, 'program') render_mode = track_settings.get(self.event, 'program_render_mode') program = RENDER_MODE_WRAPPER_MAP[render_mode](program) tracks = (Track.query.with_parent(self.event).options( subqueryload('conveners'), subqueryload('abstract_reviewers')).order_by(Track.position).all()) return WPDisplayTracks.render_template('display.html', self.event, program=program, tracks=tracks)
def _process(self): page_title = get_menu_entry_by_name('program', self.event_new).localized_title program = track_settings.get(self.event_new, 'program') render_mode = track_settings.get(self.event_new, 'program_render_mode') program = RENDER_MODE_WRAPPER_MAP[render_mode](program) tracks = (Track.query.with_parent(self.event_new) .options(subqueryload('conveners'), subqueryload('abstract_reviewers')) .order_by(Track.position) .all()) return WPDisplayTracks.render_template('display.html', self._conf, event=self.event_new, page_title=page_title, program=program, tracks=tracks)