websauna icon indicating copy to clipboard operation
websauna copied to clipboard

wsgi filters break some cmd commands

Open slav0nic opened this issue 6 years ago • 0 comments

If i add some filter to .ini like:

[filter:myfilter]
...
[app:main]
use = egg:MyEgg
filter-with = myfilter

This part of code failed (cmd like ws-settings etc) with error Configuration did not yield to Websauna application with Initializer set up: https://github.com/websauna/websauna/blob/5524757e545d27f1198b645626b9bea0a29e9c30/websauna/system/devop/cmdline.py#L130-L131

get_wsgi_app function return myfilter, that don't have initializer attr

slav0nic avatar Jun 11 '19 20:06 slav0nic