From 99d06f3646d8f60f8d58aba1b85b1fe1eb0b8f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Raczy=C5=84ski?= Date: Tue, 26 Jan 2016 23:03:34 +0100 Subject: Fixed --browser behaviour when --server-name provided Fixed PR #1533. Calling: pserve --server-name abc --browser app.ini caused error : "LookupError: No section 'main' (prefixed by 'server') found in config app.ini" --- pyramid/scripts/pserve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py index 155b82bdc..6737966ba 100644 --- a/pyramid/scripts/pserve.py +++ b/pyramid/scripts/pserve.py @@ -9,7 +9,7 @@ # lib/site.py import atexit -import ctypes +import ctypes. import errno import logging import optparse @@ -391,7 +391,7 @@ a real process manager for your processes like Systemd, Circus, or Supervisor. if self.options.browser: def open_browser(): - context = loadcontext(SERVER, app_spec, name=app_name, relative_to=base, + context = loadcontext(SERVER, app_spec, name=server_name, relative_to=base, global_conf=vars) url = 'http://127.0.0.1:{port}/'.format(**context.config()) time.sleep(1) -- cgit v1.2.3 From a7760fa5a2b0d37337d5e76093cf09a627407222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Raczy=C5=84ski?= Date: Tue, 26 Jan 2016 23:07:45 +0100 Subject: Typo --- pyramid/scripts/pserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/scripts/pserve.py b/pyramid/scripts/pserve.py index 6737966ba..3ea614eb5 100644 --- a/pyramid/scripts/pserve.py +++ b/pyramid/scripts/pserve.py @@ -9,7 +9,7 @@ # lib/site.py import atexit -import ctypes. +import ctypes import errno import logging import optparse -- cgit v1.2.3 From 26adba13bb999b73398727925fe0ace7c947f59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Raczy=C5=84ski?= Date: Tue, 26 Jan 2016 23:24:19 +0100 Subject: Added myself to contributor list --- CONTRIBUTORS.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 1f3597e84..7c895ac15 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -258,3 +258,5 @@ Contributors - Rami Chousein, 2015/10/28 - Sri Sanketh Uppalapati, 2015/12/12 + +- Marcin RaczyƄski, 2016/01/26 -- cgit v1.2.3