taskbridgeapp.reminders.model.remindercontainer.LocalList

class taskbridgeapp.reminders.model.remindercontainer.LocalList(list_name, list_id=None)

Bases: object

Represents a local folder storing reminders.

Methods

create

Creates the local list using AppleScript.

delete

Delete the local list with this object's name.

__init__(list_name, list_id=None)

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

Parameters:
  • list_name (str) – the name of the list to create.

  • list_id (str | None) – for existing lists, their UUID.

create(fail=False)

Creates the local list using AppleScript.

Parameters:

fail (bool) – set this to True to fail this method (used for test coverage)

Return type:

tuple[bool, str]

Returns:

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

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

delete()

Delete the local list with this object’s name.

Return type:

tuple[bool, str]

Returns:

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

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