def list(self): # This lists all periods including those in the future periods = ReportingPeriod.all() return {'periods': periods, 'period': self.period}
def select_reporting_period(self): user = self.request.context periods = ReportingPeriod.all() url_target = self.request.GET.get('came_from') return {'periods': periods, 'user': user, 'url_target': url_target}