Part of GTG.core.requester View In Hierarchy
Requester
is a stateless object that simply provides a nice API for user interfaces
to use for datastore operations.
Multiple Requester
s can
exist on the same datastore, so they should never have state of their
own.
Method | __init__ | Construct a Requester . |
Method | connect | Undocumented |
Method | has_task | Does the task 'tid' exist? |
Method | get_task | Get the task with the given tid . |
Method | new_task | Create a new task. |
Method | delete_task | Delete the task 'tid'. |
Method | get_tasks_list | Return a list of tids of tasks. |
Method | get_active_tasks_list | Return a list of task ids for all active tasks. |
Method | get_closed_tasks_list | Return a list of task ids for closed tasks. |
Method | get_notes_list | Return a list of task ids for notes. |
Method | new_tag | Create a new tag called 'tagname'. |
Method | get_tag | Undocumented |
Method | get_all_tags | Return a list of every tag that was ever used. |
Method | get_notag_tag | Undocumented |
Method | get_alltag_tag | Undocumented |
Method | get_used_tags | Return tags currently used by a task. |
tid
.
If no such task exists, create it and force the tid to be
tid
.
Parameters | tid | The task id. |
Returns | A task. |
Note: this modifies the datastore.
Parameters | pid | The project where the new task will be created. |
tags | The tags for the new task. If not provided, then the task will have no tags. | |
newtask | True if this is creating a task, False if
importing an existing task.
|
Note: this modifies the datastore.
Parameters | tid | The id of the task to be deleted. |
By default, returns a list of all the tids of all active tasks.
Parameters | tags | A list of tags. If provided, restricts the list of returned tasks to those that have one or more of these tags. |
status | A list of statuses. If provided, restricts the list of returned tasks to those that are in one of these states. | |
notag_only | If True, only include tasks without tags. Defaults to False .
| |
started_only | If True, only include tasks that have been started. That is, tasks that
have an already-passed start date or tasks with no startdate. Defaults to
True .
| |
is_root | If True, only include tasks that have no parent in the current selection. Defaults to False. | |
Returns | A list of task ids (tids). |
See get_tasks_list
for more information about the parameters.
Parameters | workable | If True , then only include tasks with no pending subtasks and
that can be done directly and exclude any tasks that have a
nonworkview tag which is not explicitly provided in the
tags parameter. Defaults to False .
|
"Closed" means either "done", "dismissed" or "deleted".
See get_tasks_list
for more information about the parameters.
See `get_tasks_list` for more information about the parameters.