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.reporter = ContributionDisplayReporter(event=self.event_new) def _process(self): tz = timezone(DisplayTZ(session.user, self._conf).getDisplayTZ()) return self.view_class.render_template('display/contribution_list.html', self._conf, event=self.event_new, timezone=tz, **self.reporter.get_contrib_report_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.reporter = ContributionDisplayReporter(event=self.event_new) def _process(self): tz = timezone(DisplayTZ(session.user, self._conf).getDisplayTZ()) return self.view_class.render_template( 'display/contribution_list.html', self._conf, event=self.event_new, timezone=tz, **self.reporter.get_contrib_report_kwargs())
def _checkParams(self, params): RHConferenceBaseDisplay._checkParams(self, params) self.contribs = self.event_new.contributions self.reporter = ContributionDisplayReporter(event=self.event_new)