From: Tomas Babej Date: Sat, 8 Aug 2015 18:39:42 +0000 (+0200) Subject: backends: Add refresh_task to the Backend interface X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/4a289416db9f24d81cacd14da40f5db196454e79 backends: Add refresh_task to the Backend interface --- diff --git a/tasklib/backends.py b/tasklib/backends.py index e7b9a74..bf4cd67 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -42,6 +42,14 @@ class Backend(object): def complete_task(self, task): pass + @abc.abstractmethod + def refresh_task(self, task): + """ + Refreshes the given task. Returns new data dict with serialized + attributes. + """ + pass + @abc.abstractmethod def sync(self): """Syncs the backend database with the taskd server"""