Task.warrior references replaced by Task.backend

This commit is contained in:
Tomas Babej 2015-08-09 16:16:10 +02:00
parent 2d7624e491
commit c0dd9d0621
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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: