# HG changeset patch
# User Jeff Hammel <jhammel@mozilla.com>
# Date 1307636627 25200
# Node ID 6bb431e41e0b67eda4aa7ed87c034ec358f46b65
# Parent  f0f3525486dbf346355bc4562523906713d50924
stub getting the override options

diff -r f0f3525486db -r 6bb431e41e0b pyloader/factory.py
--- 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: