From 3c40c67500a765909d07c80339a76ede245a1d09 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 25 Jul 2008 00:14:11 +0000 Subject: More glossary lovin. --- docs/tutorials/lxmlgraph/step02.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs/tutorials/lxmlgraph/step02.rst') 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 ``_ 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 -- cgit v1.2.3