summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
AgeCommit message (Collapse)Author
2016-07-19Change gendered language in examplesJon Davidson
Some examples in documentation use "dude" and "bro" -- for example, "Not found, bro". While playful, this language can make some people uncomfortable. I have changed the wording to something equally playful that doesn't make assumptions about the reader's gender.
2016-06-20typo fix within urldispatch narrative, example 2dowwie
2016-04-23Fix all the stinky linkie rot via `make linkcheck ↵Steve Piercy
SPHINXBUILD=$VENV/bin/sphinx-build`, but don't bother with HISTORY.txt or whatsnew-xx
2015-10-07- grammar, rewrappingSteve Piercy
2015-10-06- grammar, rewrappingSteve Piercy
2015-03-15Allow passing a custom redirect class for appending slashesDonald Stufft
2015-02-17reword a small part to clarify what's happening with view_configMichael Merickel
2014-12-10Revise URL Dispatch documentation to use config.scan() in Examples 1, 2, and 3Zack Marvel
In response to #600.
2014-02-10- Garden PR #1121Steve Piercy
2013-11-17Removed extra indentation from some examples (:linenos: should be indented ↵Antti Haapala
with the same indentation as the rest of the code block)
2013-09-08- Removed the ability to pass the following arguments toChris McDonough
``pyramid.config.Configurator.add_route``: `view``, ``view_context``. ``view_for``, ``view_permission``, ``view_renderer``, and ``view_attr``. Using these arguments had been deprecated since Pyramid 1.1. Instead of passing view-related arguments to ``add_route``, use a separate call to ``pyramid.config.Configurator.add_view`` to associate a view with a route using its ``route_name`` argument. Note that this impacts the ``pyramid.config.Configurator.add_static_view`` function too, because it delegates to ``add_route``.
2013-08-20raise ValueError instead of generating just path when _app_url is provided ↵Chris McDonough
to request.route_url and the route has an external pattern
2013-08-19allow pregenerator and route_prefix with external routesMichael Merickel
2013-08-17reference the static url route featureTom Lazar
2013-08-17typoTom Lazar
2013-08-17Document the external URL feature.Fabian Neumann
2013-08-09"arent" to "aren't"tisdall
2013-04-02fix #964Michael Merickel
2013-03-22remove unused ignore-next-block directiveTshepang Lekhonkhobe
2013-03-21Resolve conflict.Tres Seaver
2013-03-13consistency: use $VENV whenever virtualenv binaries are usedTshepang Lekhonkhobe
2013-03-12Merge pull request #896 from tshepang/consistencyMichael Merickel
consistency fixes
2013-03-12Merge pull request #890 from tshepang/miscMichael Merickel
miscellaneous doc improvements
2013-03-12Merge pull request #888 from tshepang/fixesMichael Merickel
miscellaneous doc fixes
2013-03-09capitalize; add term roleTshepang Lekhonkhobe
2013-03-06remove a distractionTshepang Lekhonkhobe
2013-03-06address issues raised by Tres Seaver at #884Tshepang Lekhonkhobe
2013-03-05fix grammar; shorten overlong sentenceTshepang Lekhonkhobe
2013-03-05DRYTshepang Lekhonkhobe
2013-03-05DRYTshepang Lekhonkhobe
2013-03-05grammar fixesTshepang Lekhonkhobe
2013-01-29replace 'note' with the more correct 'versionadded' directiveTshepang Lekhonkhobe
2013-01-18make example links clickable, for convenienceTshepang Lekhonkhobe
2013-01-02eliminate other repeated wordsTshepang Lekhonkhobe
2012-12-22Typo pakage => packageReinout van Rees
2012-05-23Fixed a few glitches in the "Using a Route Prefix to Compose Applications" ↵Fabian Büchler
section of the docs/narr/urldispatch.rst docs.
2012-04-27Update docs/narr/urldispatch.rstVlAleVas
2012-02-26make latex render againChris McDonough
2012-02-22- New API: ``pyramid.config.Configurator.add_notfound_view``. This is aChris McDonough
wrapper for ``pyramid.Config.configurator.add_view`` which provides easy append_slash support. It should be preferred over calling ``add_view`` directly with ``context=HTTPNotFound`` as was previously recommended. - New API: ``pyramid.view.notfound_view_config``. This is a decorator constructor like ``pyramid.view.view_config`` that calls ``pyramid.config.Configurator.add_notfound_view`` when scanned. It should be preferred over using ``pyramid.view.view_config`` with ``context=HTTPNotFound`` as was previously recommended. - The older deprecated ``set_notfound_view`` Configurator method is now an alias for the new ``add_notfound_view`` Configurator method. This has the following impact: the ``context`` sent to views with a ``(context, request)`` call signature registered via the deprecated ``add_notfound_view``/``set_notfound_view`` will now be the HTTPNotFound exception object instead of the actual resource context found. Use ``request.context`` to get the actual resource context. It's also recommended to disuse ``set_notfound_view`` in favor of ``add_notfound_view``, despite the aliasing. - The API documentation for ``pyramid.view.append_slash_notfound_view`` and ``pyramid.view.AppendSlashNotFoundViewFactory`` was removed. These names still exist and are still importable, but they are no longer APIs. Use ``pyramid.config.Configurator.add_notfound_view(append_slash=True)`` or ``pyramid.view.notfound_view_config(append_slash=True)`` to get the same behavior. - The ``set_forbidden_view`` method of the Configurator was removed from the documentation. It has been deprecated since Pyramid 1.1. - The AppendSlashNotFoundViewFactory used request.path to match routes. This was wrong because request.path contains the script name, and this would cause it to fail in circumstances where the script name was not empty. It should have used request.path_info, and now does. - Updated the "Registering a Not Found View" section of the "Hooks" chapter, replacing explanations of registering a view using ``add_view`` or ``view_config`` with ones using ``add_notfound_view`` or ``notfound_view_config``. - Updated the "Redirecting to Slash-Appended Routes" section of the "URL Dispatch" chapter, replacing explanations of registering a view using ``add_view`` or ``view_config`` with ones using ``add_notfound_view`` or ``notfound_view_config``
2012-02-07bug in url dispatch docsMichael Merickel
2012-02-05fix extra parenChris McDonough
2012-01-05bring docs up to date with codeChris McDonough
2012-01-05fix urldispatch matching and generation to cope with various inputsChris McDonough
2011-10-24gardenMichael Merickel
2011-10-12Edited docs/narr/urldispatch.rst via GitHubWayne Tong
2011-10-06remove all reference to the paster command-line utilityChris McDonough
2011-09-23add documenteation for the __text__ attribute for a predicatemichr
2011-09-23fixed up all the warning dealing ..note and ..warnmichr
added a hide toc for glossary to prevent warnings
2011-09-12document replacement marker compositionChris McDonough
2011-09-07more refs to root factory docsChris McDonough