From c0dd9d0621afe1502f928f636232d478b3a01249 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 9 Aug 2015 16:16:10 +0200 Subject: [PATCH] Task.warrior references replaced by Task.backend --- taskwiki/viewport.py | 2 +- taskwiki/vwtask.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/taskwiki/viewport.py b/taskwiki/viewport.py index 002dadd..d6a90db 100644 --- a/taskwiki/viewport.py +++ b/taskwiki/viewport.py @@ -211,7 +211,7 @@ class ViewPort(object): # representations of the same task matching_vimwikitasks= [ t for t in self.tasks - if t.uuid == vwtask.ShortUUID(task['uuid'], task.warrior) + if t.uuid == vwtask.ShortUUID(task['uuid'], task.backend) ] # Remove the tasks from viewport's set and from buffer diff --git a/taskwiki/vwtask.py b/taskwiki/vwtask.py index 35d09bc..8a671f0 100644 --- a/taskwiki/vwtask.py +++ b/taskwiki/vwtask.py @@ -202,7 +202,7 @@ class VimwikiTask(object): @classmethod def from_task(cls, cache, task): - self = cls(cache, task['uuid'], task.warrior) + self = cls(cache, task['uuid'], task.backend) self.update_from_task() return self @@ -341,7 +341,7 @@ class VimwikiTask(object): if port: # The task should have the same source as the viewport has self.tw = port.tw - self.task.warrior = port.tw + self.task.backend = port.tw # Any defaults specified should be inherited if port.defaults: