eric6/E5XML/TasksWriter.py

changeset 8278
e647b71b393f
parent 8269
87f521f359d5
child 8280
17d03699f151
equal deleted inserted replaced
8277:ea734702ae94 8278:e647b71b393f
74 ) 74 )
75 for task in tasks: 75 for task in tasks:
76 self.writeStartElement("Task") 76 self.writeStartElement("Task")
77 self.writeAttribute("priority", str(task.priority)) 77 self.writeAttribute("priority", str(task.priority))
78 self.writeAttribute("completed", str(task.completed)) 78 self.writeAttribute("completed", str(task.completed))
79 # TODO: task type enum change; str(task.taskType.value) 79 self.writeAttribute("type", str(task.taskType.value))
80 self.writeAttribute("type", str(task.taskType))
81 self.writeAttribute("uid", task.uid) 80 self.writeAttribute("uid", task.uid)
82 if task.parentUid: 81 if task.parentUid:
83 self.writeAttribute("parent_uid", task.parentUid) 82 self.writeAttribute("parent_uid", task.parentUid)
84 if task.childCount() > 0: 83 if task.childCount() > 0:
85 self.writeAttribute("expanded", str(task.isExpanded())) 84 self.writeAttribute("expanded", str(task.isExpanded()))

eric ide

mercurial