On Thu, 21 Aug 2008, Frank Niessink wrote:
> 2008/8/21 Frank Niessink <[EMAIL PROTECTED]>:
>> 2008/8/21 Jerome Laheurte <[EMAIL PROTECTED]>:
>>> No, actually I don't change anything, just click on OK. Maybe there's
>>> something you don't do exactly like me, let's detail:
>>
>> Now I see it too. I'll look into it tonight (when the kids are sleeping ;-)
>
> It's only happening with the trunk, right? I can't reproduce it with
> the Release0_70_Branch.
Indeed. That's because in Release0_70,
taskcoachlib.patterns.Composite.__getstate__ looks like this:
def __getstate__(self):
return dict(children=self.__children[:], parent=self.__parent)
So, no actual copy of children instances, while in trunk it's
def __getstate__(self):
return dict(children=[child.copy() for child in
self.__children],
parent=self.__parent)
The children copy is the root of the problem.
Cheers
Jérôme