Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
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)
Exemplo n.º 4
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)
Exemplo 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)
Exemplo n.º 6
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)