Merge lp:~stevenk/convoy/exportable-app into lp:convoy
Status: | Rejected |
---|---|
Rejected by: | Steve Kowalik |
Proposed branch: | lp:~stevenk/convoy/exportable-app |
Merge into: | lp:convoy |
Diff against target: |
156 lines (+69/-28) 3 files modified
convoy/combo.py (+25/-20) convoy/tests/test_combo.py (+41/-4) setup.py (+3/-4) |
To merge this branch: | bzr merge lp:~stevenk/convoy/exportable-app |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sidnei da Silva (community) | Needs Fixing | ||
Review via email: mp+91601@code.launchpad.net |
Description of the change
This branch moves the inner WSGI application handler from inside combo_app() to be a fully fledged method that can be called outside of combo_app.
The reason for this is we'd like to override the root directory using SetEnv in the Apache config, which gets passed into the WSGI call in the environ dict. Since the application handler used by combo_app() isn't exported, I can't use combo_app, since the start_response variable can't be passed around.
I've tested use of combo_app() and _application() before submitting this MP, and both look to work great.
Unmerged revisions
- 21. By Steve Kowalik
-
Rename _application to application, write a test, and fix up setup.py not to
install tests. - 20. By Steve Kowalik
-
Split out the actual WSGI application function to one that can be exported.
Bump version.
I'm really confused as to why this is needed. In any case, if the intention is to call _application externally, making this some sort of public API it should definitely not start with an underscore, and a test for it should be added.