'Gets executed when a plugin config panel is created.
:param plugin: The plugin which will be configured.
When executed, takes a snapshot of the original plugin configuration.'

def plugin_config(self, plugin):

    if ((plugin.ptype, plugin.pname) in self.pluginsConfigs):
        return
    opts = plugin.get_options()
    realopts = {}
    for opt in opts:
        realopts[opt.get_name()] = opt.get_default_value_str()
    self.pluginsConfigs[(plugin.ptype, plugin.pname)] = realopts
