*return a flat list of all tasks contained within this taskpaper object*

        **Return:**
            - ``taskList`` -- a flat list of all tasks

        **Usage:**

            To return a flat list of all tasks recursively found with a taskpaper document object, use the following:

            .. code-block:: python

               allTasks = doc.all_tasks()
               for t in allTasks:
                    print t.title

def all_tasks(
            self):
        """*return a flat list of all tasks contained within this taskpaper object*

        **Return:**
            - ``taskList`` -- a flat list of all tasks

        **Usage:**

            To return a flat list of all tasks recursively found with a taskpaper document object, use the following:

            .. code-block:: python

               allTasks = doc.all_tasks()
               for t in allTasks:
                    print t.title
        """
        self.refresh
        tasksList = []
        for t in self.tasks:
            tasksList.append(t)
            subtasks = t.all_tasks()
            tasksList += subtasks

        isProject = False
        try:
            this = self.projects
            isProject = True
        except:
            pass

        if isProject:
            for p in self.projects:
                subtasks = p.all_tasks()
                tasksList += subtasks

        return tasksList