summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/basiclayout.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
-rw-r--r--docs/tutorials/wiki2/basiclayout.rst21
1 files changed, 10 insertions, 11 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst
index 6d6287126..0193afab4 100644
--- a/docs/tutorials/wiki2/basiclayout.rst
+++ b/docs/tutorials/wiki2/basiclayout.rst
@@ -132,11 +132,10 @@ Finally, ``main`` is finished configuring things, so it uses the
View Declarations via ``views.py``
----------------------------------
-Arguably, the main function of a web framework is mapping each URL
-patterns, see :term:`route`, to code, see :term:`view callable`, that is
-executed when the requested URL matches the corresponding :term:`route`. Our
-application uses the :meth:`pyramid.view.view_config` decorator to perform
-this mapping.
+The main function of a web framework is mapping each URL pattern to code (a
+:term:`view callable`) that is executed when the requested URL matches the
+corresponding :term:`route`. Our application uses the
+:meth:`pyramid.view.view_config` decorator to perform this mapping.
Open ``tutorial/tutorial/views.py``. It should already contain the following:
@@ -228,10 +227,10 @@ To give a simple example of a model class, we define one named ``MyModel``:
Our example model has an ``__init__`` method that takes two arguments
(``name``, and ``value``). It stores these values as ``self.name`` and
-``self.value`` within the ``__init__`` function itself. The ``MyModel`` class
-also has a ``__tablename__`` attribute. This informs SQLAlchemy which table
-to use to store the data representing instances of this class.
-
-That's about all there is to it with models, views, and initialization code in
-our stock application.
+``self.value`` on the instance created by the ``__init__`` function itself.
+The ``MyModel`` class also has a ``__tablename__`` attribute. This informs
+SQLAlchemy which table to use to store the data representing instances of this
+class.
+That's about all there is to it regarding models, views, and initialization
+code in our stock application.