def _process(self): detailed = request.args.get('detail') == 'contributions' return send_file( 'session.ics', BytesIO(session_to_ical(self.session, session.user, detailed)), 'text/calendar')
def _get_session(self, session): self._add_from_rh(RHDisplaySession, WPStaticSessionDisplay, {'event_id': self.event.id, 'session_id': session.id}, session) pdf = get_session_timetable_pdf(session, tz=self._display_tz) self._add_pdf(session, 'sessions.export_session_timetable', pdf) self._add_file(session_to_ical(session), 'sessions.export_ics', session)