summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/basiclayout.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-11-20 22:47:52 -0500
committerChris McDonough <chrism@plope.com>2012-11-20 22:47:52 -0500
commitc6a575052ae14e515c288e77a452440030c1cdcd (patch)
tree7bf6dc6f2b929e5a206aae6d751b0cda5d96aefd /docs/tutorials/wiki2/basiclayout.rst
parent8f4fcc47c9405f20cfed3a40931f12534b3b7193 (diff)
parentb5e4443dd28f3d4ed6e767e06d658838575d159e (diff)
downloadpyramid-c6a575052ae14e515c288e77a452440030c1cdcd.tar.gz
pyramid-c6a575052ae14e515c288e77a452440030c1cdcd.tar.bz2
pyramid-c6a575052ae14e515c288e77a452440030c1cdcd.zip
Merge branch 'master' into sontek-fix_commands
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
-rw-r--r--docs/tutorials/wiki2/basiclayout.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst
index dbd130c36..4f73dc914 100644
--- a/docs/tutorials/wiki2/basiclayout.rst
+++ b/docs/tutorials/wiki2/basiclayout.rst
@@ -171,6 +171,12 @@ application. Without being processed by ``scan``, the decorator effectively
does nothing. ``@view_config`` is inert without being detected via a
:term:`scan`.
+The sample ``my_view()`` created by the scaffold uses a ``try:`` and ``except:``
+clause, to detect if there is a problem accessing the project database and
+provide an alternate error response. That response will include the text
+shown at the end of the file, which will be displayed in the browser to
+inform the user about possible actions to take to solve the problem.
+
Content Models with ``models.py``
---------------------------------