summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
AgeCommit message (Collapse)Author
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
2011-09-07add squishy whats-unique section to introductionChris McDonough
2011-09-05move unrelated request cleanup to webob.rest; reorder urldispatch chapter ↵Chris McDonough
from most-important-concept-to-least
2011-08-14- The ``route_url``, ``route_path``, ``resource_url``, ``static_url``, andChris McDonough
``current_route_url`` functions in the ``pyramid.url`` package now delegate to a method on the request they've been passed, instead of the other way around. The pyramid.request.Request object now inherits from a mixin named pyramid.url.URLMethodsMixin to make this possible, and all url/path generation logic is embedded in this mixin. - Narrative and API documentation which used the ``route_url``, ``route_path``, ``resource_url``, ``static_url``, and ``current_route_url`` functions in the ``pyramid.url`` package have now been changed to use eponymous methods of the request instead.
2011-08-10- Added a ``route_prefix`` argument to theChris McDonough
``pyramid.config.Configurator.include`` method. This argument allows you to compose URL dispatch applications together. See the section entitled "Using a Route Prefix to Compose Applications" in the "URL Dispatch" narrative documentation chapter. - Added a section entitled "Using a Route Prefix to Compose Applications" to the "URL Dispatch" narrative documentation chapter.
2011-07-30Updated all of the docs to reflect the new pyramid.* settings prefix.Michael Merickel
2011-07-20- Reordered chapters in narrative section for better new user friendliness.Chris McDonough
- Added more indexing markers to sections in documentation.
2011-07-20add more index markersChris McDonough
2011-07-13move all paster commands to a separate chapterChris McDonough