2010/2/26 Jérôme Laheurte <[email protected]>: > All beta-testers of v2 for the iPhone encounter a problem during sync; the > log says > > File "taskcoachlib\iphone\protocol.pyo", line 697, in init > AttributeError: 'Task' object has no attribute 'task' > > the offending lines are > > self.efforts = list([effort for effort in > self.disp().window.taskFile.efforts().allItemsSorted() \ > if effort.task() is None or not > effort.task().isDeleted()]) > > which means that the effort list also contains Task instances ? Is that > possible ? No matter what I try, I can't reproduce this myself...
There should never be tasks in the taskFile.effort() container. I think allItemsSorted may be the cause of this, it calls rootItems and I'm afraid rootItems is somehow invoked on the taskList that the effortList is decorating... The class hierarchy is quite complicated, so I have trouble following the chain of invocations myself :-( I'll have another look when the kids are in bed :-) Cheers, Frank
