From fba349892ccdf2b2e82f51fc42b4e556fa3db726 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 18 Jun 2009 22:33:34 +0000 Subject: Rejigger tutorial in the face of request-only default views. --- docs/tutorials/bfgwiki2/basiclayout.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/tutorials/bfgwiki2/basiclayout.rst') diff --git a/docs/tutorials/bfgwiki2/basiclayout.rst b/docs/tutorials/bfgwiki2/basiclayout.rst index 303622c7e..8809bc503 100644 --- a/docs/tutorials/bfgwiki2/basiclayout.rst +++ b/docs/tutorials/bfgwiki2/basiclayout.rst @@ -36,8 +36,8 @@ XML namespace. Our sample ZCML file looks like the following: attribute, it is the "default" route. The attribute named ``view`` with the value ``.views.my_view`` is the dotted name to a *function* we write (generated by the ``bfg_routesalchemy`` - template) that is given a ``context`` and a ``request`` and returns - a response. You will use mostly ```` statements in a + template) that is given a ``request`` object and which returns a + response. You will use mostly ```` statements in a :term:`URL dispatch` based application to map URLs to code. #. *Lines 14-17*. Register a ```` with a path that starts with @@ -54,11 +54,11 @@ XML namespace. Our sample ZCML file looks like the following: Content Models with ``models.py`` --------------------------------- -In the context of a SQLAlchemy-based application, a *model* object is -an object composed by quering the SQL database which backs an -application. SQLAlchemy is an "object relational mapper" (an ORM). -The ``models.py`` file is where the ``bfg_zodb`` Paster template put -the classes that implement our models. +In a SQLAlchemy-based application, a *model* object is an object +composed by quering the SQL database which backs an application. +SQLAlchemy is an "object relational mapper" (an ORM). The +``models.py`` file is where the ``bfg_routesalchemy`` Paster template +put the classes that implement our models. Here is the source for ``models.py``: -- cgit v1.2.3