tastic.tastic.baseClass (class)

class tastic.tastic.baseClass(matchObject, parentObject=None)[source]

This is the base class for all taskpaper objects: documents, projects and tasks

Key Arguments:
  • matchObject – a dictionary containing the constituent parts of the object
  • parentObject – the parent object containing this taskpaper object. Default None
__init__(matchObject, parentObject=None)[source]

Methods

__init__(matchObject[, parentObject])
add_note(note) Add a note to this taskpaper object
add_project(title[, tags]) Add a project to this taskpaper object
add_tag(tag) Add a tag this taskpaper object
add_task(title[, tags]) Add a task to this taskpaper object
all_tasks() return a flat list of all tasks contained within this taskpaper object
del_tag(tag) delete a tag this taskpaper object
done([depth]) mark this object as done
get_project(projectName) recursively scan this taskpaper object to find a descendant project by name
get_task(taskName) recursively scan this taskpaper object to find a descendant task by name
notestr() return the notes of this object as a string
set_tags([tags]) Set the tags for this taskpaper object
sort_projects(workflowTags) order the projects within this taskpaper object via a list of tags
sort_tasks(workflowTags[, indentLevel]) order tasks within this taskpaper object via a list of tags
tagged_projects(tag) return a list of projects contained within this taskpaper object filtered by a given tag
tagged_tasks(tag) return a list of tasks contained within this taskpaper object filtered by a given tag
tidy() Tidy this taskpapaer object so that sub-objects appear in this order: title, tags, notes, tasks, projects
to_string([indentLevel, title, tags, ...]) convert this taskpaper object to a string

Attributes

content The text content of this object (excluding title)
notes list of the notes assoicated with this object
parent This taskpaper object’s parent object (if any)
projects All child projects of this taskpaper object
raw_content The raw, untidied content of the taskpaper object
tags The list of tags associated with this taskpaper object
tasks list of the tasks assoicated with this object
title The title of this taskpaper object