Show More
@@ -185,6 +185,7 b' class Exporter(LoggingConfigurable):' | |||||
185 | return Config() |
|
185 | return Config() | |
186 |
|
186 | |||
187 | def _config_changed(self, name, old, new): |
|
187 | def _config_changed(self, name, old, new): | |
|
188 | """When setting config, make sure to start with our default_config""" | |||
188 | c = self.default_config |
|
189 | c = self.default_config | |
189 | if new: |
|
190 | if new: | |
190 | c.merge(new) |
|
191 | c.merge(new) | |
@@ -193,6 +194,13 b' class Exporter(LoggingConfigurable):' | |||||
193 |
|
194 | |||
194 |
|
195 | |||
195 | def _load_template(self): |
|
196 | def _load_template(self): | |
|
197 | """Load the Jinja template object from the template file | |||
|
198 | ||||
|
199 | This is a no-op if the template attribute is already defined, | |||
|
200 | or the Jinja environment is not setup yet. | |||
|
201 | ||||
|
202 | This is triggered by various trait changes that would change the template. | |||
|
203 | """ | |||
196 | if self.template is not None: |
|
204 | if self.template is not None: | |
197 | return |
|
205 | return | |
198 | # called too early, do nothing |
|
206 | # called too early, do nothing |
General Comments 0
You need to be logged in to leave comments.
Login now