76 for task in tasks: |
76 for task in tasks: |
77 self.writeStartElement("Task") |
77 self.writeStartElement("Task") |
78 self.writeAttribute("priority", str(task.priority)) |
78 self.writeAttribute("priority", str(task.priority)) |
79 self.writeAttribute("completed", str(task.completed)) |
79 self.writeAttribute("completed", str(task.completed)) |
80 self.writeAttribute("type", str(task.taskType)) |
80 self.writeAttribute("type", str(task.taskType)) |
|
81 self.writeAttribute("uid", task.uid) |
|
82 if task.parentUid: |
|
83 self.writeAttribute("parent_uid", task.parentUid) |
|
84 if task.childCount() > 0: |
|
85 self.writeAttribute("expanded", str(task.isExpanded())) |
|
86 |
81 self.writeTextElement("Summary", task.summary.strip()) |
87 self.writeTextElement("Summary", task.summary.strip()) |
82 self.writeTextElement("Description", task.description.strip()) |
88 self.writeTextElement("Description", task.description.strip()) |
83 self.writeTextElement("Created", time.strftime( |
89 self.writeTextElement("Created", time.strftime( |
84 "%Y-%m-%d, %H:%M:%S", time.localtime(task.created))) |
90 "%Y-%m-%d, %H:%M:%S", time.localtime(task.created))) |
85 if task.filename: |
91 if task.filename: |