예제 #1
0
 def list(self):
     # This lists all periods including those in the future
     periods = ReportingPeriod.all()
     return {'periods': periods, 'period': self.period}
예제 #2
0
 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}