From 1658be8a7ea71e7661a0019188fbdd0c54e31fd5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 10 May 2009 21:22:53 +0000 Subject: - Added documentation to the URL Dispatch chapter about how to catch the root URL. --- CHANGES.txt | 6 ++++++ docs/narr/urldispatch.rst | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 4f73d2895..759d84f47 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,12 @@ 0.8dev (unreleased) ------------------- +Features +-------- + +- Added documentation to the URL Dispatch chapter about how to catch + the root URL. + Bug Fixes --------- diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 9d843799b..7c2c71ad0 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -133,7 +133,7 @@ collection_name condition_method - The nameof the HTTP method used as the Routes `condition method + The name of the HTTP method used as the Routes `condition method `_. condition_subdomain @@ -362,6 +362,22 @@ When you do this, the :term:`view name` will be computed dynamically if the route matches. In the above example, if the ``view_name`` turns out to be ``articles``, the articles view will eventually be called. +Catching the Root URL +--------------------- + +It's not entirely obvious how to use a route to catch the root URL +("/"). To do so, give the empty string as a path in a ZCML ``route`` +declaration: + +.. code-block:: xml + :linenos: + + + Using :mod:`repoze.bfg` Security With URL Dispatch -------------------------------------------------- -- cgit v1.2.3