From cb654fbbc28b06610f695d326641bc2ec723d802 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 1 Mar 2007 20:10:04 +0100 Subject: [PATCH] [svn] fixed jinja trunk --HG-- branch : trunk --- jinja/datastructure.py | 2 +- jinja/translators/python.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jinja/datastructure.py b/jinja/datastructure.py index a86d0ea..80d6b1b 100644 --- a/jinja/datastructure.py +++ b/jinja/datastructure.py @@ -100,7 +100,7 @@ class Context(object): def __init__(self, _environment_, *args, **kwargs): self.environment = _environment_ - self._stack = [self.environment.globals, dict(*args, **kwargs), {}, {}] + self._stack = [self.environment.globals, dict(*args, **kwargs), {}] self.globals, self.initial, self.current = self._stack # cache object used for filters and tests diff --git a/jinja/translators/python.py b/jinja/translators/python.py index bb15a2d..1f8e724 100644 --- a/jinja/translators/python.py +++ b/jinja/translators/python.py @@ -129,8 +129,9 @@ class PythonTranslator(Translator): def process(environment, node): translator = PythonTranslator(environment, node) + filename = node.filename or '