diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-24 21:49:59 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-24 21:49:59 +0000 |
| commit | 8b1767d3d2876b7f519b119683f32458ec50ffa4 (patch) | |
| tree | e9a2ee5521e8b946db036c99ae35f28a34573233 /docs | |
| parent | c8973d646805770d7869ce6067c8ef96e46ca078 (diff) | |
| download | pyramid-8b1767d3d2876b7f519b119683f32458ec50ffa4.tar.gz pyramid-8b1767d3d2876b7f519b119683f32458ec50ffa4.tar.bz2 pyramid-8b1767d3d2876b7f519b119683f32458ec50ffa4.zip | |
Get rendering right.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/lxmlgraph/step02.rst | 11 |
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: |
