def extra_configuration_collection(self, configuration):
        """Hook to do any extra configuration collection or converter registration"""
        configuration["__imported__"] = {}
        configuration["__registered__"] = {}
        configuration["__active_modules__"] = {}

        def make_converter(name, spec):
            def converter(p, v):
                log.info("Converting %s", p)
                meta = Meta(p.configuration, [(name, "")])
                configuration.converters.started(p)
                return spec.normalise(meta, v)
            return converter
        configuration.install_converters(DashMatConverters(), make_converter)

        if "modules" in configuration:
            for module_name, module_options in list(configuration["modules"].items()):
                if "import_path" in module_options:
                    module = module_import_spec(Module).normalise(Meta(configuration, []).at("modules").at(module_name), module_options["import_path"])
                    import_path = "{0}:{1}".format(module.module_path, module.__name__)
                    self.activate_module(module_name, import_path, module, configuration)
                    configuration[["modules", module_name, "import_path"]] = module
def extra_configuration_collection ( self , configuration ) : configuration [ "__imported__" ] = { } configuration [ "__registered__" ] = { } configuration [ "__active_modules__" ] = { } def make_converter ( name , spec ) : def converter ( p , v ) : log . info ( "Converting %s" , p ) meta = Meta ( p . configuration , [ ( name , "" ) ] ) configuration . converters . started ( p ) return spec . normalise ( meta , v ) return converter configuration . install_converters ( DashMatConverters ( ) , make_converter ) if "modules" in configuration : for module_name , module_options in list ( configuration [ "modules" ] . items ( ) ) : if "import_path" in module_options : module = module_import_spec ( Module ) . normalise ( Meta ( configuration , [ ] ) . at ( "modules" ) . at ( module_name ) , module_options [ "import_path" ] ) import_path = "{0}:{1}" . format ( module . module_path , module . __name__ ) self . activate_module ( module_name , import_path , module , configuration ) configuration [ [ "modules" , module_name , "import_path" ] ] = module
Hook to do any extra configuration collection or converter registration