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())) |