Skip to content

Commit

Permalink
Merge branch 'master' into pr/2853
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Dec 14, 2016
2 parents 3c5731a + 8dfa640 commit 12a11da
Show file tree
Hide file tree
Showing 41 changed files with 2,027 additions and 193 deletions.
17 changes: 17 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ Features

See https://github.com/Pylons/pyramid/pull/2805

- A new ``[pserve]`` section is supported in your config files with a
``watch_files`` key that can configure ``pserve --reload`` to monitor custom
file paths. See https://github.com/Pylons/pyramid/pull/2827

- Allow streaming responses to be made from subclasses of
``pyramid.httpexceptions.HTTPException``. Previously the response would
be unrolled while testing for a body, making it impossible to stream
a response.
See https://github.com/Pylons/pyramid/pull/2863

Bug Fixes
---------

Expand Down Expand Up @@ -152,11 +162,18 @@ Bug Fixes
from previous orders have executed.
See https://github.com/Pylons/pyramid/pull/2757

- Fix bug in i18n where the default domain would always use the Germanic plural
style, even if a different plural function is defined in the relevant
messages file. See https://github.com/Pylons/pyramid/pull/2859

Deprecations
------------

Documentation Changes
---------------------
- Replace Typographical Conventions with an enhanced Style Guide.
https://github.com/Pylons/pyramid/pull/2838

- Add pyramid_nacl_session to session factories.
See https://github.com/Pylons/pyramid/issues/2791

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ Contributors

- Keith Yang, 2016/07/22

- Hannah Krager, 2016/10/22

- Moriyoshi Koizumi, 2016/11/20

- Mikko Ohtamaa, 2016/12/6
Expand Down
1 change: 1 addition & 0 deletions docs/api/i18n.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.. automodule:: pyramid.i18n

.. autoclass:: TranslationString
:noindex:

.. autofunction:: TranslationStringFactory

Expand Down
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ def nothing(*arg):
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'repoze.sphinx.autointerface',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'repoze.sphinx.autointerface',
'sphinxcontrib.programoutput',
# enable pylons_sphinx_latesturl when this branch is no longer "latest"
# 'pylons_sphinx_latesturl',
Expand All @@ -68,6 +69,7 @@ def nothing(*arg):
'pylonswebframework': ('http://docs.pylonsproject.org/projects/pylons-webframework/en/latest/', None),
'python': ('https://docs.python.org/3', None),
'pytest': ('http://pytest.org/latest/', None),
'sphinx': ('http://www.sphinx-doc.org/en/latest', None),
'sqla': ('http://docs.sqlalchemy.org/en/latest', None),
'tm': ('http://docs.pylonsproject.org/projects/pyramid-tm/en/latest/', None),
'toolbar': ('http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest', None),
Expand Down Expand Up @@ -119,6 +121,9 @@ def nothing(*arg):
# unit titles (such as .. function::).
add_module_names = False

# Add support for todo items
todo_include_todos = True

# The name of the Pygments (syntax highlighting) style to use.
#pygments_style = book and 'bw' or 'tango'
if book:
Expand Down
107 changes: 0 additions & 107 deletions docs/conventions.rst

This file was deleted.

7 changes: 4 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,14 @@ Copyright, Trademarks, and Attributions
copyright


Typographical Conventions
=========================
Typographical Conventions and Style Guide
=========================================

.. toctree::
:maxdepth: 1

conventions
typographical-conventions
style-guide


Index and Glossary
Expand Down
2 changes: 1 addition & 1 deletion docs/latexindex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Front Matter
:maxdepth: 1

copyright
conventions
style-guide
authorintro
designdefense

Expand Down
22 changes: 22 additions & 0 deletions docs/narr/project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1067,3 +1067,25 @@ hard drive, you should install the
`watchdog <http://pythonhosted.org/watchdog/>` package in development.
``hupper`` will automatically use ``watchdog`` to more efficiently poll the
filesystem.

Monitoring Custom Files
~~~~~~~~~~~~~~~~~~~~~~~

By default, ``pserve --reload`` will monitor all imported Python code
(everything in ``sys.modules``) as well as the config file passed to
``pserve`` (e.g. ``development.ini``). You can instruct ``pserve`` to watch
other files for changes as well by defining a ``[pserve]`` section in your
configuration file. For example, let's say your application loads the
``favicon.ico`` file at startup and stores it in memory to efficiently
serve it many times. When you change it you want ``pserve`` to restart:

.. code-block:: ini
[pserve]
watch_files =
myapp/static/favicon.ico
Paths may be absolute or relative to the configuration file. They may also
be an :term:`asset specification`. These paths are passed to ``hupper`` which
has some basic support for globbing. Acceptable glob patterns depend on the
version of Python being used.
Loading

0 comments on commit 12a11da

Please sign in to comment.