From 8b1767d3d2876b7f519b119683f32458ec50ffa4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 24 Jul 2008 21:49:59 +0000 Subject: Get rendering right. --- docs/tutorials/lxmlgraph/step02.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs/tutorials') 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: -- cgit v1.2.3