Skip to content

Refactor config/middleware.py to more closely match poc-flask-views#3116

Merged
wardi merged 1 commit intomasterfrom
3116-middleware-refactor
Jun 21, 2016
Merged

Refactor config/middleware.py to more closely match poc-flask-views#3116
wardi merged 1 commit intomasterfrom
3116-middleware-refactor

Conversation

@brew
Copy link
Copy Markdown
Member

@brew brew commented Jun 15, 2016

To help with eventual merging of the Flask migration work (#2971), this PR restructures the CKAN middleware module to more closely match the file structure used by the poc-flask-views branch. This separates the Flask and Pylons apps, and common middleware code into different modules, making it a little easier to work with the separate concerns.

It was starting to become unmanageably large with a lot of separate
concerns in one place.

- Separate the flask and pylons app code into separate modules.
- Separate the common middleware code into a separate module.
@amercader
Copy link
Copy Markdown
Member

For the reviewer, the only new thing apart from structure changes that this includes is a monkey-patch on the WebOb library. This was discussed on a past dev meeting, but all the details are in this commit: 09fd630

@wardi wardi merged commit 954205d into master Jun 21, 2016
@smotornyuk smotornyuk deleted the 3116-middleware-refactor branch December 19, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants