Blaise Laflamme
2012-08-10 328f640ce030d72d153d3c72a25c0dee85a5c18c
Revert "should return the uri and not the adjusted uri if not in collection"

This reverts commit 918d54da858ae754eaaf82c351ddaee55bf19d99.
1 files modified
2 ■■■ changed files
pyramid/mako_templating.py 2 ●●● patch | view | raw | blame | history
pyramid/mako_templating.py
@@ -68,7 +68,7 @@
                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)