Beispiel #1
0
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())
Beispiel #2
0
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())
Beispiel #3
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.reporter = ContributionDisplayReporter(event=self.event_new)
Beispiel #4
0
 def _checkParams(self, params):
     RHConferenceBaseDisplay._checkParams(self, params)
     self.contribs = self.event_new.contributions
     self.reporter = ContributionDisplayReporter(event=self.event_new)