Danny Shevitz | 16 Jul 00:59

Re: probable bug in @on_trait_change with delegated lists


> 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

Gmane