Chris McDonough
2011-09-22 8be6d2ef57ec8b7ff321c29bb692a1c64aca86e6
Merge branch 'master' of github.com:Pylons/pyramid
2 files modified
4 ■■■■ changed files
docs/whatsnew-1.2.rst 2 ●●● patch | view | raw | blame | history
pyramid/mako_templating.py 2 ●●● patch | view | raw | blame | history
docs/whatsnew-1.2.rst
@@ -139,7 +139,7 @@
- The :meth:`pyramid.request.Request.static_url` API (and its brethren
  :meth:`pyramid.request.Request.static_path`,
  :func:`pyramid.url.static_url`, and :func:`pyramid.url.static_path`) now
  accept an asbolute filename as a "path" argument.  This will generate a URL
  accept an absolute filename as a "path" argument.  This will generate a URL
  to an asset as long as the filename is in a directory which was previously
  registered as a static view.  Previously, trying to generate a URL to an
  asset using an absolute file path would raise a ValueError.
pyramid/mako_templating.py
@@ -50,7 +50,7 @@
                if os.path.isfile(srcfile):
                    return self._load(srcfile, uri)
                raise exceptions.TopLevelLookupException(
                    "Cant locate template for uri %r" % uri)
                    "Can not locate template for uri %r" % uri)
        return TemplateLookup.get_template(self, uri)