From: Tomas Babej Date: Sat, 8 Aug 2015 18:00:00 +0000 (+0200) Subject: backends: Add complete_task to the backend interface X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/5c5b35a097608b63c3d54acf2f07d5cb00e85796 backends: Add complete_task to the backend interface Marking task as 'done' needs to be implemented as a separate backend operation too. --- diff --git a/tasklib/backends.py b/tasklib/backends.py index 12a9234..c99d63f 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -38,6 +38,10 @@ class Backend(object): def stop_task(self, task): pass + @abc.abstractmethod + def complete_task(self, task): + pass + @abc.abstractmethod def sync(self): """Syncs the backend database with the taskd server"""