plone.app.event.ical.exporter

class plone.app.event.ical.exporter.EventsICal(context, request)[source]

Returns events in iCal format.

class plone.app.event.ical.exporter.ICalendarEventComponent(context)[source]

Returns an icalendar object of the event.

property geo

Not implemented.

plone.app.event.ical.exporter.add_to_zones_map(tzmap, tzid, dt)[source]

Build a dictionary of timezone information from a timezone identifier and a date/time object for which the timezone information should be calculated.

Parameters:
  • tzmap (dictionary) – An existing dictionary of timezone information to be extended or an empty dictionary.

  • tzid (string) – A timezone identifier.

  • dt (datetime) – A datetime object.

Returns:

A dictionary with timezone information needed to build VTIMEZONE entries.

Return type:

dictionary

plone.app.event.ical.exporter.calendar_from_collection(context)[source]

Container/Event adapter. Returns an icalendar.Calendar object from a Collection.

plone.app.event.ical.exporter.calendar_from_container(context)[source]

Container adapter. Returns an icalendar.Calendar object from a Containerish context like a Folder.

plone.app.event.ical.exporter.calendar_from_event(context)[source]

Event adapter. Returns an icalendar.Calendar object from an Event context.

plone.app.event.ical.exporter.construct_icalendar(context, events)[source]

Returns an icalendar.Calendar object.

Parameters:
  • context – A content object, which is used for calendar details like Title and Description. Usually a container, collection or the event itself.

  • events – The list of event objects, which are included in this calendar.