fixed but in requirement extraction that came up because the template node doesn...
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 18 Oct 2007 21:15:40 +0000 (23:15 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 18 Oct 2007 21:15:40 +0000 (23:15 +0200)
--HG--
branch : trunk

jinja/translators/python.py

index f7607438e06fa66e8cf076b0399469b00a27ee9e..04b9aed774ee00af6a2462971f46ab6ebc1b7535 100644 (file)
@@ -322,7 +322,7 @@ class PythonTranslator(Translator):
             # the master layout template is loaded. This can be used
             # for further processing. The output of those nodes does
             # not appear in the final template.
-            requirements += [child for child in node.get_child_nodes()
+            requirements += [child for child in node.body.get_child_nodes()
                              if child.__class__ not in (nodes.Text,
                              nodes.Block)]