~kees/gtg/lp-562604

« back to all changes in this revision

Viewing changes to GTG/core/task.py

  • Committer: Luca Invernizzi
  • Date: 2010-03-18 00:10:30 UTC
  • Revision ID: invernizzi.l@gmail.com-20100318001030-y09ng5acapqaskr0
Drag and drop support on taskbrowser works again (fixing #bug 529908).
Lionel, please see this commit: there is a hack in tasktree.py to update
a task when its parents change, but it doesn't work properly. How could 
this be resolved?

Show diffs side-by-side

added added

removed removed

Lines of Context:
395
395
    def add_parent(self, parent_tid):
396
396
        added = TreeNode.add_parent(self, parent_tid)
397
397
        if added:
398
 
            #print "add_parent %s to %s" %(parent.get_id(),self.get_id())
399
398
            self.sync()
400
 
            parent.sync()
 
399
            self.req.get_task(parent_tid).sync()
401
400
            return True
402
401
        else:
403
402
            return False