def _load_json_file_direct(self, fname): self.task = task.from_dict(helpers.load_from_json(file(fname))) self._fill_from_task()
def load(f_or_fname): """ load from file object or filename """ dic = helpers.load_from_json(f_or_fname) return task.from_dict(dic)