src/eric7/EricXML/TasksReader.py

branch
eric7
changeset 9278
36448ca469c2
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9277:471c5a263d53 9278:36448ca469c2
79 """ 79 """
80 Private method to read the task info. 80 Private method to read the task info.
81 """ 81 """
82 task = { 82 task = {
83 "summary": "", 83 "summary": "",
84 "priority": TaskPriority.NORMAL,
85 "completed": False,
86 "created": 0, 84 "created": 0,
87 "filename": "", 85 "filename": "",
88 "linenumber": 0, 86 "linenumber": 0,
89 "type": TaskType.TODO, 87 "type": TaskType.TODO,
90 "description": "", 88 "description": "",
91 "uid": "", 89 "uid": "",
90 "priority": TaskPriority(
91 int(self.attribute("priority", str(TaskPriority.NORMAL.value)))
92 ),
93 "completed": self.toBool(self.attribute("completed", "False")),
92 } 94 }
93 task["priority"] = TaskPriority(
94 int(self.attribute("priority", str(TaskPriority.NORMAL.value)))
95 )
96 task["completed"] = self.toBool(self.attribute("completed", "False"))
97 if self.version in ["4.2", "5.0"]: 95 if self.version in ["4.2", "5.0"]:
98 isBugfix = self.toBool(self.attribute("bugfix", "False")) 96 isBugfix = self.toBool(self.attribute("bugfix", "False"))
99 if isBugfix: 97 if isBugfix:
100 task["type"] = TaskType.FIXME 98 task["type"] = TaskType.FIXME
101 else: 99 else:

eric ide

mercurial