summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/basiclayout.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-08-06 00:48:55 -0400
committerChris McDonough <chrism@plope.com>2012-08-06 00:48:55 -0400
commit3c1205018dd020df3b3f91f010e90bdbaccce33f (patch)
tree0957527aa0384a1475c9d56fe43bb28146ef4d07 /docs/tutorials/wiki2/basiclayout.rst
parentc5a557f4703eff24a3baace80231a608aa2f1fe2 (diff)
parent7b854e56c637a718d3482fb05d7f1e4d8890c111 (diff)
downloadpyramid-3c1205018dd020df3b3f91f010e90bdbaccce33f.tar.gz
pyramid-3c1205018dd020df3b3f91f010e90bdbaccce33f.tar.bz2
pyramid-3c1205018dd020df3b3f91f010e90bdbaccce33f.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
-rw-r--r--docs/tutorials/wiki2/basiclayout.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst
index 5f4ea671c..b3184c4fc 100644
--- a/docs/tutorials/wiki2/basiclayout.rst
+++ b/docs/tutorials/wiki2/basiclayout.rst
@@ -100,7 +100,7 @@ used when the URL is ``/``:
:language: py
Since this route has a ``pattern`` equalling ``/`` it is the route that will
-be matched when the URL ``/`` is visted, e.g. ``http://localhost:6543/``.
+be matched when the URL ``/`` is visited, e.g. ``http://localhost:6543/``.
``main`` next calls the ``scan`` method of the configurator, which will
recursively scan our ``tutorial`` package, looking for ``@view_config`` (and
@@ -190,7 +190,7 @@ Next we set up a SQLAlchemy "DBSession" object:
``scoped_session`` allows us to access our database connection globally.
``sessionmaker`` creates a database session object. We pass to
``sessionmaker`` the ``extension=ZopeTransactionExtension()`` extension
-option in order to allow the system to automatically manage datbase
+option in order to allow the system to automatically manage database
transactions. With ``ZopeTransactionExtension`` activated, our application
will automatically issue a transaction commit after every request unless an
exception is raised, in which case the transaction will be aborted.