taskw.fields package¶
Submodules¶
taskw.fields.annotationarray module¶
-
class
taskw.fields.annotationarray.Annotation(description, entry=None)[source]¶ Bases:
strA special type of string that we’ll use for storing annotations.
This is, for all intents and purposes, really just a string, but it does allow us to store additional information if we have it – in this application: the annotation’s entry date.
-
entry¶
-
-
class
taskw.fields.annotationarray.AnnotationArrayField(label=None, read_only=False)[source]¶ Bases:
taskw.fields.array.ArrayFieldA special case of the ArrayField handling idiosyncrasies of Annotations
Taskwarrior will currently return to you a dictionary of values – the annotation’s date and description – for each annotation, but given that we cannot create annotations with a date, let’s instead return something that behaves like a string (but from which you can extract an entry date if one exists).
taskw.fields.array module¶
taskw.fields.base module¶
-
class
taskw.fields.base.Dirtyable(value=None)[source]¶ Bases:
objectSuperclass for all objects implementing trackability.
-
class
taskw.fields.base.DirtyableDict(value=None)[source]¶ Bases:
taskw.fields.base.Dirtyable,dict
-
class
taskw.fields.base.DirtyableList(value=None)[source]¶ Bases:
taskw.fields.base.Dirtyable,list
taskw.fields.choice module¶
taskw.fields.commaseparateduuid module¶
taskw.fields.date module¶
taskw.fields.duration module¶
-
class
taskw.fields.duration.DurationField(label=None, read_only=False)[source]¶ Bases:
taskw.fields.string.StringFieldIn the future this will handle transforming recurrence patterns.
See https://github.com/taskwarrior/task/blob/2.3.0/src/Duration.cpp#L41