cannot interpolate default values from main
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-configglue |
New
|
Undecided
|
Unassigned |
Bug Description
if in the schema you define an option with a default value that would fall under the __main__ section, you are unable to interpolate those values to another section using the default value.
If you define an option with a default value you are able to use it within the same named section.
#schema.py
class FooSchema(
gump = schema.
class shrimp(
captain = schema.
#main.cfg
[__main__]
[shrimp]
captain = %(gump)s
The above example will not work. If you were to place a static gump = 'forrest' in to main it would work, or if you were to place the option in the shrimp section the default value would work with interpolation.
I feel that if you can interpolate from the main section for any value in the cfg, you should also be able to use the default value from the main section as well.