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)
def _program_visible(event): return bool(track_settings.get(event, 'program').strip() or Track.query.with_parent(event).has_rows())
def _program_visible(event): return bool( track_settings.get(event, 'program').strip() or Track.query.with_parent(event).has_rows())