using Paste's proxy-prefix with inherited ini files?

21 views
Skip to first unread message

Jonathan Vanasco

unread,
Jul 13, 2016, 1:47:09 PM7/13/16
to pylons-discuss
I'm cleaning up a deployment and ran into something that I don't quite understand.

If I apply a `filter-with` in a base.ini file, I can't overwrite (or append) any values in a derivied.ini

for example:

base.ini
[app:main]
use = egg:MyApp
foo = bar
filter-with = proxy-prefix
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix

derived.ini
[app:main]
use = config:base.ini#main
foo = biz
                bar = foo

Running `bin/pserve derivied.ini` will not put the foo/bar values into the settings.

the `set foo=biz` syntax won't work; and I couldn't get the pipeline command to affect this either

the values show up in global_config, set to my_app.main(global_config, settings)

does anyone know if it's possible to set up the filtering in a base ini and still inherit?

I just migrated the filter into derived.py and everything works as expected.  I'd rather de-duplicate this if possible though.
Reply all
Reply to author
Forward
0 new messages