summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
AgeCommit message (Collapse)Author
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
2011-07-12fix sampleChris McDonough
2011-07-12remove references to add_route view-related configurationChris McDonough
2011-07-12remove deprecated mechanism to associate views with routes; add description ↵Chris McDonough
of scan mechanism
2011-07-07Updated proutes and pviews docs.Michael Merickel
2011-06-11- Pyramid now expects Response objects to have a __call__Chris McDonough
method which implements the WSGI application interface instead of the three webob attrs status, headerlist and app_iter. Backwards compatibility exists for code which returns response objects that do not have a __call__. - pyramid.response.Response is no longer an exception (and therefore cannot be raised in order to generate a response). - Changed my mind about moving stuff from pyramid.httpexceptions to pyramid.response. The stuff I moved over has been moved back to pyramid.httpexceptions.
2011-05-31the canonical import location for HTTP exceptions/responses is now ↵Chris McDonough
pyramid.response
2011-05-13- The ``add_route`` method of the Configurator now accepts a ``static``Chris McDonough
argument. If this argument is ``True``, the added route will never be considered for matching when a request is handled. Instead, it will only be useful for URL generation via ``route_url`` and ``route_path``. See the section entitled "Static Routes" in the URL Dispatch narrative chapter for more information.
2011-05-04code refactoring for showing route->view relationship more correctly; tests ↵cguardia
and docs for pull request
2011-04-24fix rendering issueChris McDonough
2011-04-22- Make sure deprecation warnings aren't raised when tests are run.Chris McDonough
- Modify documentation for cross-referencing. - Use add_view(viewname) syntax rather than add_view(view=viewname) syntax for normalization. - Use warnings.warn rather than zope.deprecated in order to make testing easier. - Move tests which test deprecated methods of configurator to a separate test case.
2011-04-20Converting docs to deprecate view parameters in config.add_route.Michael Merickel
2011-03-24It was decided that pyramid would undergo a terminology change.Joe Dallago
'Paster templates' will now be refered to as 'scaffolds,' while 'rendered templates' will remain as 'templates.' I have changed the docs to reflect this change in terminology.
2011-03-02Closes #125Chris McDonough
2011-02-05fix conflictsChris McDonough
2011-01-30fix referencesChris McDonough
2011-01-30- Remove duplication of ``add_route`` API documentation from URL DispatchChris McDonough
narrative chapter.
2011-01-29- Changed "Cleaning up After a Request" section in the URL Dispatch chapterChris McDonough
to use ``request.add_finished_callback`` instead of jamming an object with a ``__del__`` into the WSGI environment.
2011-01-29Merge branch 'master' of https://github.com/osmaker/pyramid into osmaker-masterChris McDonough
2011-01-28shorten too-long lines for latexChris McDonough
2011-01-28minor grammar fixes ('a' vs 'an')Kyle Johnson
2011-01-27method name contractions; move details of view lookup to endChris McDonough
2011-01-27fix dangling referencesChris McDonough
2011-01-27First batch of fixes for typo's and other language issues.Chris Beelby
2011-01-26fix typo in "URL Dispatch section mentioned by some on mailing list: ↵michr
https://groups.google.com/group/pylons-devel/browse_thread/thread/511291709aec2b4a