parameters: (self, config)
docstring: Update self from a dict.
docstring_summary: Update self from a dict.
docstring_tokens: Update self from a dict .
function: def _apply(self, config):
          """Update self from a dict."""
          if isinstance(config.get('global'), 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)
function_tokens: def _apply ( self , config ) : if isinstance ( config . get ( 'global' ) , 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 )