E5XML/TasksWriter.py

changeset 3990
5dd6edf8540a
parent 3670
f0cb7579c0b4
child 4021
195a471c327b
--- a/E5XML/TasksWriter.py	Mon Dec 22 14:01:41 2014 +0100
+++ b/E5XML/TasksWriter.py	Mon Dec 22 18:27:16 2014 +0100
@@ -78,6 +78,12 @@
             self.writeAttribute("priority", str(task.priority))
             self.writeAttribute("completed", str(task.completed))
             self.writeAttribute("type", str(task.taskType))
+            self.writeAttribute("uid", task.uid)
+            if task.parentUid:
+                self.writeAttribute("parent_uid", task.parentUid)
+            if task.childCount() > 0:
+                self.writeAttribute("expanded", str(task.isExpanded()))
+            
             self.writeTextElement("Summary", task.summary.strip())
             self.writeTextElement("Description", task.description.strip())
             self.writeTextElement("Created", time.strftime(

eric ide

mercurial