Repository navigation
Fix syntax error in the example WSGI adapter - #849
Merged
jacebrowning merged 1 commit intoOct 9, 2026
Merged
jacebrowning merged 1 commit into
jacebrowning merged 1 commit into
Conversation
The parameter list in bin/example-adapter.wsgi was missing a comma after the base URL, so the file the deployment guide tells users to copy could not be imported. Add the comma, and a test that compiles the example so it stays valid. Fixes doorstop-dev#842
jacebrowning
self-requested a review
October 6, 2026 16:11
jacebrowning
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #842.
docs/web.mdtells users to copybin/example-adapter.wsgi, but the file cannot be imported. The parameter list is missing a comma afterbaseurl:Python reports
SyntaxError: invalid syntaxon the'--wsgi'line.Change
bin/example-adapter.wsgi: add the comma.doorstop/server/tests/test_server.py: a smallTestExampleAdaptertest that compiles the example file, so a typo there is caught by the unit tests. It skips itself whenbin/is not present, since that directory is only in a source checkout.I checked the three flags against
doorstop/server/main.py;--project,--baseurland--wsgiare all still accepted, so nothing else in the example needed changing.How I checked
On Windows 11, Python 3.14:
developwith theSyntaxErrorand passes with the fix.pytest doorstop/server/tests/test_server.py: 30 passed.pytest doorstop: 758 passed, 112 skipped, 4 failed. The same 4 tests fail on unmodifieddevelopon this machine (757 passed there); they are the HTML publisher and template tests and are not touched by this change.black --check,isort --check-only,pylint --rcfile=.pylint.iniandpydocstyleon the changed test file, andmypy doorstop/server: clean.I did not deploy the adapter under Apache/mod_wsgi; the check is that the file now compiles and its arguments match the server's parser.