1.1 --- a/imipweb/resource.py Sun Jun 04 18:28:18 2017 +0200
1.2 +++ b/imipweb/resource.py Sun Jun 04 20:15:44 2017 +0200
1.3 @@ -150,9 +150,12 @@
1.4 def _get_counters(self, uid, recurrenceid=None):
1.5 return self.store.get_counters(self.user, uid, recurrenceid)
1.6
1.7 - def _get_request_summary(self):
1.8 + def _get_request_summary(self, view_period):
1.9
1.10 - "Return a list of periods comprising the request summary."
1.11 + """
1.12 + Return a list of periods comprising the request summary within the given
1.13 + 'view_period'.
1.14 + """
1.15
1.16 summary = FreeBusyCollection()
1.17
1.18 @@ -176,7 +179,9 @@
1.19 # Obtain only active periods, not those replaced by redefined
1.20 # recurrences, converting to free/busy periods.
1.21
1.22 - for p in obj.get_active_periods(recurrenceids, self.get_tzid(), self.get_window_end()):
1.23 + for p in obj.get_active_periods(recurrenceids, self.get_tzid(),
1.24 + start=view_period.get_start(), end=view_period.get_end()):
1.25 +
1.26 summary.append(obj.get_freebusy_period(p))
1.27
1.28 return summary