def _getContrib(self, contrib):
        self._add_from_rh(RHContributionDisplay, WPStaticContributionDisplay,
                          {'confId': self.event.id, 'contrib_id': contrib.id},
                          contrib)
        self._addPdf(contrib, 'contributions.export_pdf', ContribToPDF, contrib=contrib)

        for author in contrib.primary_authors:
            self._getAuthor(contrib, author)
        for author in contrib.secondary_authors:
            self._getAuthor(contrib, author)

        if contrib.timetable_entry:
            self._add_file(get_contribution_ical_file(contrib), 'contributions.export_ics', contrib)
Exemple #2
0
    def _getContrib(self, contrib):
        self._add_from_rh(RHContributionDisplay, WPStaticContributionDisplay,
                          {'confId': self._conf.id, 'contrib_id': contrib.id},
                          contrib)
        self._addPdf(contrib, 'contributions.export_pdf', ContribToPDF, contrib=contrib)

        for author in contrib.primary_authors:
            self._getAuthor(contrib, author)
        for author in contrib.secondary_authors:
            self._getAuthor(contrib, author)

        if contrib.timetable_entry:
            self._add_file(get_contribution_ical_file(contrib), 'contributions.export_ics', contrib)
Exemple #3
0
 def _process(self):
     if not self.contrib.is_scheduled:
         raise NotFound('This contribution is not scheduled')
     return send_file('contribution.ics',
                      get_contribution_ical_file(self.contrib),
                      'text/calendar')
Exemple #4
0
 def _process(self):
     if not self.contrib.is_scheduled:
         raise NotFound('This contribution is not scheduled')
     return send_file('contribution.ics', get_contribution_ical_file(self.contrib), 'text/calendar')