|
Methods defined here:
- __init__(self)
- getEvents(self, calendar_names, start_datetime, end_datetime, by_calendar=False)
- Returns events between a specified time span from specified calendars.
The return value will be a list of Cocoa CalEvent objects unless the
by_calendar argument is set to True, in which case it will be a list
of dictionaries, each with the keys 'calendar' (pointing to a Cocoa
CalCalendar object) and 'events' (pointing to a list of Cocoa CalEvent
objects, each from that calendar).
Positional arguments:
calendar_names -- A list containing the names of the calendars
to get the events from, or None to get events from
all calendars.
start_datetime -- The start datetime for the time span between which to get events.
end_datetime -- The end datetime for the time span between which to get events.
Keyword arguments:
by_calendar -- Whether to separate the returned events by calendar.
- getUncompletedTasks(self, calendar_names, due_before_date=None, by_calendar=False)
- Returns uncompleted tasks from specified calendars.
The return value will be a list of Cocoa CalTask objects unless the
by_calendar argument is set to True, in which case it will be a list
of dictionaries, each with the keys 'calendar' (pointing to a Cocoa
CalCalendar object) and 'events' (pointing to a list of Cocoa CalTask
objects, each from that calendar).
Positional arguments:
calendar_names -- A list containing the names of the calendars
to get the tasks from, or None to get tasks from
all calendars.
Keyword arguments:
due_before_date -- The due date cut-off for returned tasks. If this
argument is set, only tasks that are due before
the given date are returned.
by_calendar -- Whether to separate the returned tasks by calendar.
|