16 Jul 00:59
Re: probable bug in @on_trait_change with delegated lists
From: Danny Shevitz <shevitz@...>
Subject: Re: probable bug in @on_trait_change with delegated lists
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-15 22:59:06 GMT
Subject: Re: probable bug in @on_trait_change with delegated lists
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-07-15 22:59:06 GMT
> I'm not sure why you think that is the wrong handler, especially when
> the 'new' value is a TraitListObject? If 'new' were a TraitListEvent
> object, then your conjecture would have some merit. See my previous post
> about setting a default Property value...
>
> Dave Morrill
>
my bad, new *is* a TraitListEvent, not a TraitListObject as written, so I
believe my comment has merit.
As for sub_contexts, it is defined via
class ExtendableGate(HasStrictTraits):
sub_contexts = List
class ExtendableContext(HasStrictTraits):
logic_element= Instance('ExtendableGate')
sub_contexts = Delegate('logic_element', modify=True)
D
RSS Feed