Class G.b.l.Backend:

Part of GTG.backends.localfile View In Hierarchy

An instance of this backend.
Method __init__ Construct a Backend.
Method get_tasks_list Return the list of task IDs available in this backend.
Method get_task Fill the task_to_fill with information from the task tid.
Method set_task Save task in the backend.
Method remove_task Completely remove the task tid.
Method new_task_id Return a task ID for a new task.
Method quit Called when GTG quits.
def __init__(self, parameters, firstrunxml=None):
Construct a Backend.
ParametersparametersA dict containing parameters for the backend. The names and types of these parameters are defined by get_parameters.
firstrunxmlIgnore this. Only needed for the default backend.
def get_tasks_list(self):
Return the list of task IDs available in this backend.
def get_task(self, task_to_fill, tid):
Fill the task_to_fill with information from the task tid.
ReturnsTrue if successful, False otherwise.
def set_task(self, task):
Save task in the backend.
def remove_task(self, tid):
Completely remove the task tid.
def new_task_id(self):
Return a task ID for a new task.

A task with this ID can then be saved with set_task later.

If the backend returns None, then GTG will create a new ID by itself. The returned ID cannot contain the character '@'.

def quit(self):
Called when GTG quits.
API Documentation for GTG, generated by pydoctor at 2009-07-19 21:37:32.