290 project file. |
290 project file. |
291 |
291 |
292 @return flag indicating a project file task (boolean) |
292 @return flag indicating a project file task (boolean) |
293 """ |
293 """ |
294 return self._isProjectTask and self.filename != "" |
294 return self._isProjectTask and self.filename != "" |
|
295 |
|
296 def toDict(self): |
|
297 """ |
|
298 Public method to convert the task data to a dictionary. |
|
299 |
|
300 @return dictionary containing the task data |
|
301 @rtype dict |
|
302 """ |
|
303 return { |
|
304 "summary": self.summary.strip(), |
|
305 "description": self.description.strip(), |
|
306 "priority": self.priority, |
|
307 "lineno": self.lineno, |
|
308 "completed": self.completed, |
|
309 "created": self.created, |
|
310 "type": self.taskType, |
|
311 "uid": self.uid, |
|
312 "parent_uid": self.parentUid, |
|
313 "expanded": self.isExpanded(), |
|
314 "filename": self.getFilename(), |
|
315 } |