94 if self.version in ["4.2", "5.0"]: |
94 if self.version in ["4.2", "5.0"]: |
95 isBugfix = self.toBool(self.attribute("bugfix", "False")) |
95 isBugfix = self.toBool(self.attribute("bugfix", "False")) |
96 if isBugfix: |
96 if isBugfix: |
97 task["type"] = Task.TypeFixme |
97 task["type"] = Task.TypeFixme |
98 else: |
98 else: |
|
99 # TODO: task type enum change |
|
100 # TaskType(int(self.attribute("type", str(Task.TypeTodo.value)))) |
99 task["type"] = int(self.attribute("type", str(Task.TypeTodo))) |
101 task["type"] = int(self.attribute("type", str(Task.TypeTodo))) |
100 uid = self.attribute("uid", "") |
102 uid = self.attribute("uid", "") |
101 if uid: |
103 if uid: |
102 task["uid"] = uid |
104 task["uid"] = uid |
103 else: |
105 else: |