diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-25 16:49:20 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-25 16:49:20 +0000 |
| commit | 3200f4ec92bc219b085a718aa8842ae229bbaafe (patch) | |
| tree | 82791fdca6f1d41a1b9defbb71ac4397ab9fcb66 /docs | |
| parent | 8f72627c090472acd0b63a2dfbf4e5dd9ed940d7 (diff) | |
| download | pyramid-3200f4ec92bc219b085a718aa8842ae229bbaafe.tar.gz pyramid-3200f4ec92bc219b085a718aa8842ae229bbaafe.tar.bz2 pyramid-3200f4ec92bc219b085a718aa8842ae229bbaafe.zip | |
It's not all my fault.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/lxmlgraph/step04.rst | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/tutorials/lxmlgraph/step04.rst b/docs/tutorials/lxmlgraph/step04.rst index 59b6e6003..f96a0712f 100644 --- a/docs/tutorials/lxmlgraph/step04.rst +++ b/docs/tutorials/lxmlgraph/step04.rst @@ -23,23 +23,23 @@ Pre-Flight Cleanup In the last example, we had a default template that used ZPT. We're shifting the rest of the steps over to XSLT. Thus, our -``configure.zcml`` is now simpler: +``configure.zcml`` can now be madesimpler. Change your +``configure.zcml`` to lok like so: .. literalinclude:: step04/myapp/configure.zcml :linenos: :language: xml -We also remove the ZPT view function from ``views.py``, as we'll see -in a moment. +We'll also remove the ``zpt_view`` function from ``views.py``, as +we'll see in a moment. Design Change: Trees and Context IDs ======================================== -In ``repoze.bfg``, the ``context`` variable that is passed into our +In :mod:`repoze.bfg`, the ``context`` variable that is passed into our view function equates to the Python object that was grabbed on the -current hop in the URL. For ``repoze.lxmlgraph``, that "context" -object is a node in the XML document, found by traversing node -children. +current hop in the URL. For ``lxmlgraph``, that "context" object is a +node in the XML document, found by traversing node children. For the XSLT in Step 3, we passed in the context node. From the XSLT's perpective, the universe started at the context node. It could @@ -75,7 +75,6 @@ We will thus make the following changes in our approach: That's the big picture. Each of these changes will be explained in detail below. - ``samplemodel.xml`` ===================== |
