GTG

Comment 2 for bug 398360

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I've undoed your merge for this as it causes some trouble (heavy crashes).

TypeError: instancemethod expected at least 2 arguments, got 0
Traceback (most recent call last):
  File "/home/ploum/gtg/GTG/taskbrowser/browser.py", line 768, in refresh_tb
    self.refresh_list(toselect=toselect)
  File "/home/ploum/gtg/GTG/taskbrowser/browser.py", line 877, in refresh_list
    treeview=False)
  File "/home/ploum/gtg/GTG/taskbrowser/browser.py", line 1007, in add_task_tree_to_list
    tags = task.get_tags()
  File "/home/ploum/gtg/GTG/core/task.py", line 401, in get_tags
    return deepcopy(self.tags)
  File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
    y = copier(x, memo)

It looks like our own implementation is more robust.

Maybe, using deepcopy uncovered a bug in GTG. If this is the case, then I would suggest to make thing easier by only calling deepcopy in the returnlist function, allowing easy change for developpers.