From 6d1af7678ad0ce57c451ffe52764a15d49666b6a Mon Sep 17 00:00:00 2001 From: Blaise Laflamme Date: Thu, 9 Aug 2012 22:32:34 -0600 Subject: Revert "should return the uri and not the adjusted uri if not in collection" This reverts commit 918d54da858ae754eaaf82c351ddaee55bf19d99. --- 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