diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-22 13:42:19 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-22 13:42:19 -0400 |
| commit | ed7ffe0e2065100f551793b3774656d8bdde0fb0 (patch) | |
| tree | 53637b76d148774c5a7c3b9e103373e33e6c2f9e /docs/tutorials/wiki2/definingviews.rst | |
| parent | c150d77248653172b487326a1059b8c0bc5056e4 (diff) | |
| download | pyramid-ed7ffe0e2065100f551793b3774656d8bdde0fb0.tar.gz pyramid-ed7ffe0e2065100f551793b3774656d8bdde0fb0.tar.bz2 pyramid-ed7ffe0e2065100f551793b3774656d8bdde0fb0.zip | |
- Make sure deprecation warnings aren't raised when tests are run.
- 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.
Diffstat (limited to 'docs/tutorials/wiki2/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki2/definingviews.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorials/wiki2/definingviews.rst b/docs/tutorials/wiki2/definingviews.rst index f59f75702..832f90b92 100644 --- a/docs/tutorials/wiki2/definingviews.rst +++ b/docs/tutorials/wiki2/definingviews.rst @@ -282,8 +282,7 @@ these declarations is very important. ``route`` declarations are matched in the order they're found in the ``__init__.py`` file. #. Add a declaration which maps the pattern ``/`` (signifying the root URL) - to the route named ``view_wiki``. This is the :term:`default view` for the - wiki. + to the route named ``view_wiki``. #. Add a declaration which maps the pattern ``/{pagename}`` to the route named ``view_page``. This is the regular view for a page. @@ -299,7 +298,8 @@ to handle the processing and rendering that needs to happen when each route is requested. #. Add a declaration which maps the ``view_wiki`` route to the view named - ``view_wiki`` in our ``views.py`` file. + ``view_wiki`` in our ``views.py`` file. This is the :term:`default view` + for the wiki. #. Add a declaration which maps the ``view_page`` route to the view named ``view_page`` in our ``views.py`` file. |
