Ejemplo n.º 1
0
 def occurrence_groups(self):
     dr = dates.DateRanges()
     start, end = dr.this_year[0], dr.next_year[1]
     result = grouped_occurrences(
         occurrences(self.context, start, end), self.request
     )
     return result
Ejemplo n.º 2
0
    def groups(self, items):
        """ Returns the given occurrences grouped by human_date. """
        groups = grouped_occurrences(items, self.request)
        for key, items in groups.items():
            for ix, item in enumerate(items):
                items[ix] = item.get_object()

        return groups
Ejemplo n.º 3
0
 def occurrence_groups(self):
     dr = dates.DateRanges()
     start, end = dr.this_year[0], dr.next_year[1]
     result = grouped_occurrences(occurrences(self.context, start, end),
                                  self.request)
     return result