class documentation

class AllTasks(IndexView): (source)

Known subclasses: zim.plugins.tasklist.indexer.ActiveTasks, zim.plugins.tasklist.indexer.OpenProjectsTasks, zim.plugins.tasklist.indexer.WaitingTasks

View In Hierarchy

Database "view" that shows tasks that are indexed
Method __init__ Undocumented
Method __iter__ Undocumented
Method count_labels_and_tags_pages No summary
Method get_path Get the Path for the source of a task @param task: the task (as returned by list_tasks() @returns: an IndexPath object
Method get_task Undocumented
Method list_tasks No summary
Method set_status_included Undocumented
Constant STYLE Undocumented
Instance Variable status Undocumented
Method _count_rows Undocumented
Class Variable _include_not_started Undocumented
Class Variable _sql_filter Undocumented
Instance Variable _pages Undocumented
Instance Variable _status_sql Undocumented

Inherited from IndexView:

Class Method new_from_index Undocumented
Instance Variable db Undocumented
def __init__(self, db): (source)
def __iter__(self): (source)

Undocumented

def count_labels_and_tags_pages(self, task_labels, intersect=None): (source)
Get mapping with count of the tasks with given label or tag
Parameters
task_labelslist of task labels to be parsed
intersect2-tuple of labels and tags already selected, will return count based on intersecting with this selection
Returns
3 maps, one for label count, one for tag count and one for pagenames
def get_path(self, task): (source)
Get the Path for the source of a task
Parameters
taskthe task (as returned by list_tasks()
Returns
an IndexPath object
def get_task(self, taskid): (source)

Undocumented

def list_tasks(self, parent=None, _sql_filter=None, _include_not_started=None): (source)
List tasks
Parameters
parentthe parent task (as returned by this method) or None to list all top level tasks
_sql_filtersql snippet, defaults to class attribute - private param used by sub-classes, do not use elsewhere
_include_not_startedboolean, defaults to class attribute - private param used by sub-classes, do not use elsewhere
Returns
a iterator of tasks at this level as sqlite Row objects
def set_status_included(self, *status): (source)
status = (source)

Undocumented

def _count_rows(self, parent, tag_filter_func, label_filter_func, task_label_re, labels, tags, pages): (source)

Undocumented

_include_not_started: bool = (source)

Undocumented

_sql_filter: str = (source)

Undocumented

_pages = (source)

Undocumented

_status_sql = (source)

Undocumented