summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/lxmlgraph/step02.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/tutorials/lxmlgraph/step02.rst b/docs/tutorials/lxmlgraph/step02.rst
index 19d8a192e..a9edbae15 100644
--- a/docs/tutorials/lxmlgraph/step02.rst
+++ b/docs/tutorials/lxmlgraph/step02.rst
@@ -27,7 +27,8 @@ rather than the *project*.
-----------------------------------
We're going to add an XML document that will serve as a source for
-model data named ``samplemodel.xml``.
+model data named ``samplemodel.xml``. Put the content of this file in
+your package:
.. literalinclude:: step02/myapp/samplemodel.xml
:linenos:
@@ -90,12 +91,14 @@ the content we show below.
Module ``views.py``
-----------------------------
-Replace the autogenerated ``views.py`` code in the lxmlgraph package
-with the following::
+Replace the autogenerated ``views.py`` code in the ``lxmlgraph``
+package with the following:
.. literalinclude:: step02/myapp/views.py
:linenos:
+Here's what that file does:
+
#. Line 5 grabs the element name (tag name) of the ``context``, which
is the current XML node that we're traversing through.
@@ -104,7 +107,7 @@ with the following::
We don't need to change the ``configure.zcml`` because the
autogenerated one is still correct for this configuration. It
-includes::
+includes:
.. literalinclude:: step02/myapp/configure.zcml
:linenos: