def viewMultipleTasks(self, tasks: "list<QModelIndex>"): taskDatas = map(self.get, tasks) fullpaths = map(lambda task: task.fullpath, taskDatas) viewMultipleFiles(fullpaths)
def do_viewMultipleTasks(tasks): filenames = map(lambda t: t["path"] + t["name"], tasks) viewMultipleFiles(filenames)