On Friday, September 2, 2011 9:49:48 PM UTC-4, jazg wrote: > > Well I can do this: > > def main(global_config, **settings): > settings.update((key, val) for key, val in global_config.items() > if key not in settings) > > ...which means that this would work: > > [DEFAULT] > x = 1 > > [app:app1] > #inherits x > x = my x #overrides x
This is what I am now doing, but slightly different. In the main(global_config, **settings): settings.update(global_config) and then if I want to override something that is in [DEFAULT] I use: [DEFAULT] x = 1 [app:app1] set x = 2 Using the set key overrides it in the global_conf. -- Jason -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/rTKTIjC5v3AJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
