changeset 48:03e03668f546

start recursively fetching the wrapper; tests fail
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 08 Jun 2011 21:55:50 -0700
parents 2384ab3999b7
children 43cb882c3b72
files pyloader/factory.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyloader/factory.py	Wed Jun 08 21:19:22 2011 -0700
+++ b/pyloader/factory.py	Wed Jun 08 21:55:50 2011 -0700
@@ -126,8 +126,13 @@
                 wrapper, _path = path.split(':', 1)
                 # TODO: could interpolate wrapper 
                 if wrapper in names:
-                    wrapper_section = names[wrapper]
-                    
+                    if wrapper not in config:
+                        wrapper_section = names[wrapper]
+                        if wrapper_section in seen:
+                            pass # TODO
+                        create_section(wrapper_section, iniconfig[wrapper_section])
+                    wrapper_options = config[wrapper_section]
+                    # TODO interpolate wrapper_options
                     path = _path
 
             # make a dict for the section