taskbridgeapp.reminders.model.remindercontainer.RemoteCalendar

class taskbridgeapp.reminders.model.remindercontainer.RemoteCalendar(cal_obj=None, calendar_name=None)

Bases: object

Represents a remote CalDav calendar supporting VTODO components.

Methods

create

Creates this calendar using CalDav.

delete

Delete the remote calendar with this object's name using CalDav.

__init__(cal_obj=None, calendar_name=None)

Create a new remote calendar instance. The calendar is not actually created until the create() method is called.

Parameters:
  • cal_obj (Calendar | None) – for existing remote calendars, the calendar object.

  • calendar_name (str | None) – for new calendars, the name of the calendar to create.

create()

Creates this calendar using CalDav.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if the calendar is successfully created.

-data (str) - error message on failure or success message.

delete()

Delete the remote calendar with this object’s name using CalDav.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if the calendar is successfully deleted.

-data (str) - error message on failure or success message.