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