X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/f2d008def446626c071a9ceb2c80acb74d477cd0..e9ac4a95bfab8a3e323e15f5f26a6302a87384a3:/tasklib/backends.py diff --git a/tasklib/backends.py b/tasklib/backends.py index fe24fd2..0d01470 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -22,7 +22,10 @@ VERSION_2_4_5 = six.u('2.4.5') class Backend(object): - filter_class = TaskWarriorFilter + @abc.abstractproperty + def filter_class(self): + """Returns the TaskFilter class used by this backend""" + pass @abc.abstractmethod def filter_tasks(self, filter_obj): @@ -208,6 +211,10 @@ class TaskWarrior(object): "datetime, its type is not supported: {}" .format(type(value))) + @property + def filter_class(self): + return TaskWarriorFilter + # Public interface def get_config(self):