code: def getAllPastEvents(request, *, home=None):
      
      qrys = [SimpleEventPage.events(request).past().this(),
              MultidayEventPage.events(request).past().this(),
              RecurringEventPage.events(request).past().this(),
              PostponementPage.events(request).past().this(),
              ExtraInfoPage.events(request).exclude(extra_title="").past().this()]
      if home is not None:
          qrys = [qry.descendant_of(home) for qry in qrys]
      events = sorted(chain.from_iterable(qrys),
                      key=attrgetter('page._past_datetime_from'), reverse=True)
      return events
docs: Return all the past events (under home if given).
  
      :param request: Django request object
      :param home: only include events that are under this page (if given)
      :rtype: list of the namedtuple ThisEvent (title, page, url)