From ed3fd01131ffa1a19b462d4eed119297cea3c4db Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Fri, 9 Dec 2011 12:02:19 -0600 Subject: garden --- docs/whatsnew-1.3.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/whatsnew-1.3.rst') diff --git a/docs/whatsnew-1.3.rst b/docs/whatsnew-1.3.rst index 7b485a725..160021709 100644 --- a/docs/whatsnew-1.3.rst +++ b/docs/whatsnew-1.3.rst @@ -24,7 +24,7 @@ of Jython and the Python 2.5 version of Google App Engine. We could not easily "straddle" Python 2 and 3 versions and support Python 2 versions older than Python 2.6. You will need Python 2.6 or better to run this version of Pyramid. If you need to use Pyramid on Python 2.5, you should use the most -recent 1.2.X release fo Pyramid there. +recent 1.2.X release of Pyramid there. Though many Pyramid add-ons have releases which are already Python 3 compatible (in particular ``pyramid_debugtoolbar``, ``pyramid_jinja2``, @@ -133,7 +133,7 @@ Minor Feature Additions - ``bpython`` interpreter compatibility in ``pshell``. See :ref:`ipython_or_bpython` for more information. -- Added :func:`pyramid.paster.get_appsettings`` API function. This function +- Added :func:`pyramid.paster.get_appsettings` API function. This function returns the settings defined within an ``[app:...]`` section in a PasteDeploy ``ini`` file. -- cgit v1.2.3 From 0a51bf94ec2e85764b72f365af95ce26c8aa1261 Mon Sep 17 00:00:00 2001 From: Ronan Amicel Date: Fri, 9 Dec 2011 22:02:09 +0100 Subject: Fixed typos & minor edits. --- docs/whatsnew-1.3.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/whatsnew-1.3.rst') diff --git a/docs/whatsnew-1.3.rst b/docs/whatsnew-1.3.rst index 160021709..9c6cc5804 100644 --- a/docs/whatsnew-1.3.rst +++ b/docs/whatsnew-1.3.rst @@ -47,14 +47,14 @@ to make some changes: Previously (in Pyramid 1.0, 1.1 and 1.2), you created a Pyramid application using ``paster create``, like so:: - $myvenv/bin/paster create -t pyramid_starter foo + $ myvenv/bin/paster create -t pyramid_starter foo You're now instead required to create an application using ``pcreate`` like so:: - $myvenv/bin/pcreate -s starter foo + $ myvenv/bin/pcreate -s starter foo -Note that the names of available scaffolds have changed the and flags +Note that the names of available scaffolds have changed and the flags supported by ``pcreate`` are different than those that were supported by ``paster create``. @@ -73,11 +73,11 @@ Analogues of ``paster pshell``, ``paster pviews`` and ``paster ptweens`` also exist under the respective console script names ``pshell``, ``pviews``, and ``ptweens``. -We've replaced use of the Paste http server with the ``wsgiref`` server in +We've replaced use of the Paste ``httpserver`` with the ``wsgiref`` server in the scaffolds, so once you create a project from a scaffold, its ``development.ini`` and ``production.ini`` will have the following line:: - use = egg:pyramid#wsgref + use = egg:pyramid#wsgiref Instead of this (which was the default in older versions):: @@ -86,7 +86,7 @@ Instead of this (which was the default in older versions):: Using ``wsgiref`` as the default WSGI server is purely a default to make it possible to use the same scaffolding under Python 2 and Python 3; people running Pyramid under Python 2 can still manually install ``Paste`` and use -the Paste httpserver by replacing the former line with the latter. This is +the Paste ``httpserver`` by replacing the former line with the latter. This is actually recommended if you rely on proxying from Apache or Nginx to a ``pserve`` -invoked application. **The wsgiref server is not a production quality server.** See :ref:`alternate_wsgi_server` for more information. -- cgit v1.2.3 From 6747aa8072b645a302a218d36283045c2a8381c6 Mon Sep 17 00:00:00 2001 From: michr Date: Wed, 14 Dec 2011 16:46:00 -0800 Subject: Added in a warning in whats new 1.3 about wsgiref beign more strict about returning string headers where as paste.httpserver converted them implicitly. --- docs/whatsnew-1.3.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/whatsnew-1.3.rst') diff --git a/docs/whatsnew-1.3.rst b/docs/whatsnew-1.3.rst index 608db74cd..28c161ad0 100644 --- a/docs/whatsnew-1.3.rst +++ b/docs/whatsnew-1.3.rst @@ -101,6 +101,16 @@ actually recommended if you rely on proxying from Apache or Nginx to a ``pserve`` -invoked application. **The wsgiref server is not a production quality server.** See :ref:`alternate_wsgi_server` for more information. +.. warning:: + + Previously, paste.httpserver "helped" by converting header values that weren't + strings to strings. The wsgiref server, on the other hand implements the spec + more fully. This specifically may affect you if you are modifying headers on + your response. The following error might be an indicator of this problem: + **AssertionError: Header values must be strings, please check the type of + the header being returned.** A common case would be returning unicode headers + instead of string headers. + A new :mod:`pyramid.compat` module was added which provides Python 2/3 straddling support for Pyramid add-ons and development environments. -- cgit v1.2.3