Brian Coca 1 week ago committed by GitHub
commit d05e549ee8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- playcontext now correctly mirrors the settings from the plugins with which it overlaps.

@ -144,13 +144,9 @@ class PlayContext(Base):
def set_attributes_from_plugin(self, plugin):
# generic derived from connection plugin, temporary for backwards compat, in the end we should not set play_context properties
# get options for plugins
options = C.config.get_configuration_definitions(plugin.plugin_type, plugin._load_name)
for option in options:
if option:
flag = options[option].get('name')
if flag:
setattr(self, flag, plugin.get_option(flag))
for option in options.keys():
setattr(self, option, plugin.get_option(option))
def set_attributes_from_play(self, play):
self.force_handlers = play.force_handlers

Loading…
Cancel
Save