Esempio n. 1
0
 def _process(self):
     author_contribs = (Contribution.query.with_parent(self.event)
                        .join(ContributionPersonLink)
                        .options(joinedload('event'))
                        .options(load_only('id', 'title'))
                        .filter(ContributionPersonLink.id == self.author.id,
                                ContributionPersonLink.author_type != AuthorType.none)
                        .all())
     return WPContributions.render_template('display/contribution_author.html', self.event,
                                            author=self.author, contribs=author_contribs)
Esempio n. 2
0
 def _process(self):
     author_contribs = (Contribution.query.with_parent(
         self.event).join(ContributionPersonLink).options(
             joinedload('event')).options(load_only('id', 'title')).filter(
                 ContributionPersonLink.id == self.author.id,
                 ContributionPersonLink.author_type !=
                 AuthorType.none).all())
     return WPContributions.render_template(
         'display/contribution_author.html',
         self.event,
         author=self.author,
         contribs=author_contribs)
Esempio n. 3
0
 def _process_GET(self):
     return WPContributions.render_template('contrib_list_filter.html', self._conf, event=self.event_new,
                                            filters=self.list_generator.list_config['filters'],
                                            static_items=self.list_generator.static_items)
Esempio n. 4
0
 def _process_GET(self):
     return WPContributions.render_template('contrib_report_filter.html', self._conf, event=self.event_new,
                                            filters=self.reporter.report_config['filters'],
                                            filterable_items=self.reporter.filterable_items)
Esempio n. 5
0
 def _process_GET(self):
     return WPContributions.render_template('contrib_list_filter.html', self._conf, event=self.event_new,
                                            filters=self.list_generator.list_config['filters'],
                                            static_items=self.list_generator.static_items)