changeset 63:995b831041be

stub: override section: [foo:bar]
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 09:15:48 -0700
parents 97800b02f636
children f0f3525486db
files pyloader/factory.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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