def load_graph(graph, config, include_section):
enabled = {}
items = []
+ conditions = config.items('conditions')
for node in graph:
item = node.data
try:
try:
item.config = dict(config.items(item.setting_section))
except configparser.NoSectionError:
- pass
+ item.config = {}
+ for key,value in conditions:
+ if key not in item.config:
+ item.config[key] = value
items.append(item)
return items
hooke.config.write(config_file)
outqueue.put('configuration:\n %s'
% '\n '.join(config_file.getvalue().splitlines()))
+ # The plugin's configuration settings are also available.
+ outqueue.put('plugin config: %s' % self.plugin.config)
# hooke.plugins contains :class:`hooke.plugin.Plugin`\s defining
# :class:`hooke.command.Command`\s.
outqueue.put('plugins: %s'