Ticket #344 (new defect)

Opened 3 years ago

"filter-with" breaks during setup-app

Reported by: davidi Owned by: ianb
Priority: normal Milestone: 1.3
Component: deploy Version: released-version
Severity: normal Keywords:
Cc:

Description

If you have a "filter-with = egg:whatever" clause in your app, upon setup-app you get the error:

The section 'main' is not the application (probably a filter). You should add #section_name, where section_name is the section that configures your application

This appears to be because ConfigLoader?.get_context() doesn't set a distribution for the filter-app context. My solution (I'm not sure how correct this is) was to borrow the one from the main 'context' context.

Attachments

loadwsgi_patch Download (0.6 KB) - added by davidi 3 years ago.
loadwsgi.py patch

Change History

Changed 3 years ago by davidi

loadwsgi.py patch

Note: See TracTickets for help on using tickets.