summaryrefslogtreecommitdiff
path: root/docs/tutorials/lxmlgraph/step02.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-25 00:14:11 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-25 00:14:11 +0000
commit3c40c67500a765909d07c80339a76ede245a1d09 (patch)
tree44b4c7e60a61d0d20b74e97de9a976f3f35ddb4b /docs/tutorials/lxmlgraph/step02.rst
parent0fc14981f389a3da34ef2c3e3c53ae84ae79d2c8 (diff)
downloadpyramid-3c40c67500a765909d07c80339a76ede245a1d09.tar.gz
pyramid-3c40c67500a765909d07c80339a76ede245a1d09.tar.bz2
pyramid-3c40c67500a765909d07c80339a76ede245a1d09.zip
More glossary lovin.
Diffstat (limited to 'docs/tutorials/lxmlgraph/step02.rst')
-rw-r--r--docs/tutorials/lxmlgraph/step02.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/tutorials/lxmlgraph/step02.rst b/docs/tutorials/lxmlgraph/step02.rst
index b53fd0eff..a2c24b7a6 100644
--- a/docs/tutorials/lxmlgraph/step02.rst
+++ b/docs/tutorials/lxmlgraph/step02.rst
@@ -14,7 +14,7 @@ data. We will leverage the following ``repoze.bfg`` machinery:
Our application will need to do these things:
- - Use ``lxml`` Element classes to inject ``repoze.bfg`` behavior into
+ - Use :term:`lxml` Element classes to inject ``repoze.bfg`` behavior into
``lxml`` nodes
- That model class needs to implement the ``repoze.bfg`` publishing
@@ -55,18 +55,19 @@ containing node.
Module ``models.py``
------------------------------
-At a high level, we make write a class that "extends" ``lxml`` Element
-nodes, create an ``lxml`` parser, and register the custom class with the
-parser. Replace the contents of the autogenerated ``models.py`` with
-the content we show below.
+At a high level, we make write a class that "extends" ``lxml``
+``Element`` nodes, create an ``lxml`` parser, and register the custom
+class with the parser. Replace the contents of the autogenerated
+``models.py`` with the content we show below.
.. literalinclude:: step02/myapp/models.py
:linenos:
-#. Line 4 imports lxml.
+#. Line 4 imports ``lxml``.
#. Line 9 creates the custom class we are going to use to extend
- etree.ElementBase. The ``lxml`` website has great documentation on the
+ etree.ElementBase. The `<lxml website
+ <http://codespeak.net/lxml/>`_ has great documentation on the
various ways to inject custom Python behavior into XML.
#. Just as before, line 12 says that instances of this class support a