'Update self from a dict.'

def _apply(self, config):

    if isinstance(config.get('global', None), dict):
        if (len(config) > 1):
            cherrypy.checker.global_config_contained_paths = True
        config = config['global']
    if ('tools.staticdir.dir' in config):
        config['tools.staticdir.section'] = 'global'
    reprconf.Config._apply(self, config)
