From 4a289416db9f24d81cacd14da40f5db196454e79 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 8 Aug 2015 20:39:42 +0200 Subject: [PATCH] backends: Add refresh_task to the Backend interface --- tasklib/backends.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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""" -- 2.39.5