summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/basiclayout.rst
diff options
context:
space:
mode:
authorPatricio Paez <pp@pp.com.mx>2012-11-20 19:46:10 -0600
committerPatricio Paez <pp@pp.com.mx>2012-11-20 19:46:10 -0600
commit5fbaf7be1b82247e21fa7d3b98d76e7d92ac522c (patch)
tree6f5e91967a48248443dc25f507aec1c2e5e546a9 /docs/tutorials/wiki2/basiclayout.rst
parent9a8a2133e49b42594e27bd1b8a08e8bf88a117e6 (diff)
downloadpyramid-5fbaf7be1b82247e21fa7d3b98d76e7d92ac522c.tar.gz
pyramid-5fbaf7be1b82247e21fa7d3b98d76e7d92ac522c.tar.bz2
pyramid-5fbaf7be1b82247e21fa7d3b98d76e7d92ac522c.zip
Sync views.py on SQL wiki tutorial with the scaffold
- Explain the added lines in the Basic Layout chapter. - The user is told to remove the added lines in the Defining Views chapter, there was no need to fix any emphasized lines. - Sync the file in the other sections even if it is not shown, for consistency.
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``
---------------------------------