class RHContributionList(RHDisplayProtectionBase): """Display list of event contributions""" MENU_ENTRY_NAME = 'contributions' view_class = WPContributions def _process_args(self): RHDisplayEventBase._process_args(self) self.list_generator = ContributionDisplayListGenerator(event=self.event) def _process(self): return self.view_class.render_template('display/contribution_list.html', self.event, timezone=self.event.display_tzinfo, **self.list_generator.get_list_kwargs())
class RHContributionList(RHDisplayProtectionBase): """Display list of event contributions""" MENU_ENTRY_NAME = 'contributions' view_class = WPContributions def _checkParams(self, params): RHConferenceBaseDisplay._checkParams(self, params) self.contribs = self.event_new.contributions self.list_generator = ContributionDisplayListGenerator(event=self.event_new) def _process(self): return self.view_class.render_template('display/contribution_list.html', self._conf, event=self.event_new, timezone=self.event_new.display_tzinfo, **self.list_generator.get_list_kwargs())