Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pserve open_url config setting #2984

Merged
merged 3 commits into from
Mar 29, 2017
Merged

Conversation

mmerickel
Copy link
Member

The current open browser code is really hacky and is going to be difficult to support in plaster. This is a compromise that is slightly more explicit and should work in most situations. Basically it first tries to find an open_url setting in the [pserve] config section. If that fails it looks for port in [server:<server_name>] config section. If it can't find either then it issues a warning.

Parsing the port from the server section could be brought back but it
would be a fallback that depends on finding a "port" variable in the
[server:server_name] section of the config.
@mmerickel mmerickel changed the title pserve open url config setting pserve open_url config setting Mar 28, 2017
mmerickel added a commit to mmerickel/pyramid that referenced this pull request Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants