##// END OF EJS Templates
use delay_trait_notifications in Configurable._load_config
Min RK -
Show More
@@ -138,11 +138,14 b' class Configurable(HasTraits):'
138 138 section_names = self.section_names()
139 139
140 140 my_config = self._find_my_config(cfg)
141
142 # hold trait notifications until after all config has been loaded
143 with self.delay_trait_notifications():
141 144 for name, config_value in iteritems(my_config):
142 145 if name in traits:
143 146 if isinstance(config_value, LazyConfigValue):
144 147 # ConfigValue is a wrapper for using append / update on containers
145 # without having to copy the
148 # without having to copy the initial value
146 149 initial = getattr(self, name)
147 150 config_value = config_value.get_value(initial)
148 151 # We have to do a deepcopy here if we don't deepcopy the entire
General Comments 0
You need to be logged in to leave comments. Login now