summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2012-08-09 23:22:30 -0600
committerBlaise Laflamme <blaise@laflamme.org>2012-08-09 23:22:30 -0600
commita961aa646ed175089066ff1d37d57bb6546956b5 (patch)
tree11787501669cee587f8b0a7c33024fb62d397e81
parent2c24e0132b1ca5a8f2a805325fec64a8abee91e9 (diff)
downloadpyramid-a961aa646ed175089066ff1d37d57bb6546956b5.tar.gz
pyramid-a961aa646ed175089066ff1d37d57bb6546956b5.tar.bz2
pyramid-a961aa646ed175089066ff1d37d57bb6546956b5.zip
manually revert back to adjusted instead of uri in mako template lookup
-rw-r--r--pyramid/mako_templating.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/mako_templating.py b/pyramid/mako_templating.py
index 16170aa0f..d1ee68878 100644
--- a/pyramid/mako_templating.py
+++ b/pyramid/mako_templating.py
@@ -69,7 +69,7 @@ class PkgResourceTemplateLookup(TemplateLookup):
pname, path = resolve_asset_spec(uri)
srcfile = abspath_from_asset_spec(path, pname)
if os.path.isfile(srcfile):
- return self._load(srcfile, uri)
+ return self._load(srcfile, adjusted)
raise exceptions.TopLevelLookupException(
"Can not locate template for uri %r" % uri)
return TemplateLookup.get_template(self, uri)