"""Implementation of todone's backend API as a flat directory structure.

In particular, each :class:`Todo`is saved as a separate file, with
:class:`Folder` implemented as a file system folder.
"""
from todone import backend


class Todo:

    def __init__(self, action, folder=None, remind_date=None):
        if action:
            self.action = action
        else:
            raise ValueError("Cannot create an empty action item")
        if folder is None:
            self.folder = backend.DEFAULT_FOLDERS['folders']
        elif folder in backend.DEFAULT_FOLDERS['folders']:
            self.folder = folder
        else:
            raise ValueError("Invalid todo type specified")

205e2cd9cc17d687e8ee6eae612d4b55d7df4333
<mask token>

<mask token>


class Todo:
    <mask token>

<mask token>


class Todo:

    def __init__(self, action, folder=None, remind_date=None):
        if action:
            self.action = action
        else:
            raise ValueError('Cannot create an empty action item')
        if folder is None:
            self.folder = backend.DEFAULT_FOLDERS['folders']
        elif folder in backend.DEFAULT_FOLDERS['folders']:
            self.folder = folder
        else:
            raise ValueError('Invalid todo type specified')

<mask token>
from todone import backend


class Todo:

    def __init__(self, action, folder=None, remind_date=None):
        if action:
            self.action = action
        else:
            raise ValueError('Cannot create an empty action item')
        if folder is None:
            self.folder = backend.DEFAULT_FOLDERS['folders']
        elif folder in backend.DEFAULT_FOLDERS['folders']:
            self.folder = folder
        else:
            raise ValueError('Invalid todo type specified')

"""Implementation of todone's backend API as a flat directory structure.

In particular, each :class:`Todo`is saved as a separate file, with
:class:`Folder` implemented as a file system folder.
"""
from todone import backend


class Todo:

    def __init__(self, action, folder=None, remind_date=None):
        if action:
            self.action = action
        else:
            raise ValueError("Cannot create an empty action item")
        if folder is None:
            self.folder = backend.DEFAULT_FOLDERS['folders']
        elif folder in backend.DEFAULT_FOLDERS['folders']:
            self.folder = folder
        else:
            raise ValueError("Invalid todo type specified")
