From 73226aaacb52ad96f4d2e3653747b54f36fa9bc1 Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Thu, 9 Aug 2012 22:32:34 -0600 Subject: should return the uri and not the adjusted uri if not in collection --- pyramid/mako_templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyramid/mako_templating.py b/pyramid/mako_templating.py index d1ee68878..16170aa0f 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, adjusted) + return self._load(srcfile, uri) raise exceptions.TopLevelLookupException( "Can not locate template for uri %r" % uri) return TemplateLookup.get_template(self, uri) -- cgit v1.2.3