# HG changeset patch # User Jeff Hammel # Date 1307636148 25200 # Node ID 995b831041be98edfc00735c9497fb1a30ac6060 # Parent 97800b02f63627c9c434567aca7359994f07cc19 stub: override section: [foo:bar] diff -r 97800b02f636 -r 995b831041be pyloader/factory.py --- a/pyloader/factory.py Thu Jun 09 09:11:47 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:15:48 2011 -0700 @@ -141,15 +141,17 @@ wrapped_name = _path else: wrapped_name = section - + + # get wrapper options if wrapper not in config: + # load wrapper configuration wrapper_section = names[wrapper] if wrapper_section in seen: pass # TODO create_section(wrapper_section, iniconfig[wrapper_section]) wrapper_options = config[wrapper].copy() - # TODO interpolate wrapper_options + # interpolate wrapper_options def interpolate(option): if option == object_string: return '%(' + wrapped_name + ')s' @@ -170,6 +172,9 @@ name = wrapped_name path = _path + elif path in names: + # override section: [foo:bar] + pass # TODO # make a dict for the section path = path % defaults