'load config in file configuration and apply it to manager'

def load_config(self):

    self._logger.info('Loading    config    file    from    session    configuration')
    def _add_sources(values):
        '\n                                                adding    sources    in    configuration    file\n                                                '
        for boosting_source in values:
            boosting_source = validate_source_string(boosting_source)
            self.add_source(boosting_source)
    def _archive_sources(values):
        '\n                                                setting    archive    to    sources\n                                                '
        for archive_source in values:
            archive_source = validate_source_string(archive_source)
            self.set_archive(archive_source, True)
    def _set_enable_boosting(values, enabled):
        '\n                                                set    disable/enable    source\n                                                '
        for boosting_source in values:
            boosting_source = validate_source_string(boosting_source)
            if (boosting_source not in self.boosting_sources.keys()):
                self.add_source(boosting_source)
            self.boosting_sources[boosting_source].enabled = enabled
    self.settings.policy = self.session.config.get_credit_mining_policy(True)(self.session)
    for k in SAVED_ATTR:
        object.__setattr__(self.settings, k, getattr(self.session.config, ('get_credit_mining_%s' % k))())
    for (k, val) in self.session.config.get_credit_mining_sources().items():
        if (k is 'boosting_sources'):
            _add_sources(val)
        elif (k is 'archive_sources'):
            _archive_sources(val)
        elif (k is 'boosting_enabled'):
            _set_enable_boosting(val, True)
        elif (k is 'boosting_disabled'):
            _set_enable_boosting(val, False)
