def set_conf():
            """Collapse all ``object_trail`` conf into config.

            The config being ``cherrypy.request.config``.
            """
            base = cherrypy.config.copy()
            # Note that we merge the config from each node
            # even if that node was None.
            for name, obj, conf, segleft in object_trail:
                base.update(conf)
                if 'tools.staticdir.dir' in conf:
                    base['tools.staticdir.section'] = '/' + '/'.join(
                        fullpath[0 : fullpath_len - segleft],
                    )
            return base
Collapse all ``object_trail`` conf into config.

            The config being ``cherrypy.request.config``.
            
cherrypy/_cpdispatch.py