GTG

Comment 7 for bug 582620

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

GTG/taskbrowser/tasktree.py

One is this:
delete a task and its subtask at the same time

Traceback (most recent call last):
  File "/home/luca/Projects/gtg/TRUNK/GTG/viewmanager/delete_dialog.py", line 42, in on_delete_confirm
    self.req.delete_task(tid)
  File "/home/luca/Projects/gtg/TRUNK/GTG/core/requester.py", line 208, in delete_task
    for tag in task.get_tags():
AttributeError: 'NoneType' object has no attribute 'get_tags'

Another one is that in tagtree.py, at update_tag_task_deleted() (which updates the tags upon the deletion of a task):
if tasks_count <= 1 sometimes fail because the task has already been deleted.

The problem is that we cannot know what the current state is (task has been already deleted or not?)