From 6942961545fd909bbb6d16a1ab7992351b1586e6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 1 Dec 2010 11:09:50 -0500 Subject: fix bad info in urldispatch chapter: matchdict and matched_route will be None --- docs/narr/urldispatch.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index b025ce8d6..e439c71cd 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -838,8 +838,8 @@ strings. The values will be Unicode objects. .. note:: - If no route URL pattern matches, no ``matchdict`` is attached to - the request. + If no route URL pattern matches, the ``matchdict`` object attached to the + request will be ``None``. .. index:: single: matched_route @@ -857,6 +857,11 @@ an attribute of the :term:`request` object. Thus, request. The most useful attribute of the route object is ``name``, which is the name of the route that matched. +.. note:: + + If no route URL pattern matches, the ``matched_route`` object attached to + the request will be ``None``. + Routing Examples ---------------- -- cgit v1.2.3 From db312f843a83f7959ffa208f46c95e9a7d2c41fb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 1 Dec 2010 11:13:31 -0500 Subject: stray quote mark --- docs/narr/hybrid.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/narr/hybrid.rst b/docs/narr/hybrid.rst index e704463c7..df8d72ef4 100644 --- a/docs/narr/hybrid.rst +++ b/docs/narr/hybrid.rst @@ -262,7 +262,7 @@ to do. :class:`pyramid.configuration.Configurator` constructor instead of associating it with a particular route inside the route's configuration. Every hybrid route configuration that is matched but - which does *not* name a ``factory``` attribute will use the use + which does *not* name a ``factory`` attribute will use the use global ``root_factory`` function to generate a root object. When the route configuration named ``home`` above is matched during a -- cgit v1.2.3 From 1220f3b8f869e4caf298d9acb5e5fffe0a86129e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 1 Dec 2010 11:20:01 -0500 Subject: explain what reload_templates means wrt individual templating engines --- docs/narr/environment.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/narr/environment.rst b/docs/narr/environment.rst index af03077af..44e75542c 100644 --- a/docs/narr/environment.rst +++ b/docs/narr/environment.rst @@ -38,7 +38,10 @@ application-specific configuration settings. Reloading Templates ------------------- -When this value is true, reload templates without a restart. +When this value is true, reload templates without a restart, so you can see +changes to templates take effect immediately during development. This flag +is meaningful to Chameleon and Mako templates, as well as most third-party +template rendering extensions. +---------------------------------+-----------------------------+ | Environment Variable Name | Config File Setting Name | -- cgit v1.2.3