Mercurial > hg > pyloader
changeset 65:6bb431e41e0b
stub getting the override options
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 09:23:47 -0700 |
parents | f0f3525486db |
children | 2a9274608af3 |
files | pyloader/factory.py |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pyloader/factory.py Thu Jun 09 09:17:59 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 09:23:47 2011 -0700 @@ -174,7 +174,13 @@ elif path in names: # override section: [foo:bar] - pass # TODO + if path not in config: + # load overridden section + overridden_section = names[path] + if overridden_section in seen: + pass # TODO + create_section(overridden_section, iniconfig[overridden_section]) + # TODO: options = config[path].copy() # make a dict for the section path = path % defaults @@ -188,7 +194,7 @@ else: sect.setdefault('kwargs', {})[option] = value - + # get the object definitions for section, options in iniconfig.items(): seen.add(section) if section not in interpolated: