From b8c79771a186f1032635fc640b3cecc2c9e281ad Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 20 Aug 2011 13:05:13 -0400 Subject: - The ``pyramid.request.Request.static_url`` API (and its brethren ``pyramid.request.Request.static_path``, ``pyramid.url.static_url``, and ``pyramid.url.static_path``) now accept an asbolute 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. --- CHANGES.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 9b81ad526..2940a8228 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -81,6 +81,14 @@ Features - New functions in ``pyramid.url``: ``current_route_path`` and ``static_path``. +- The ``pyramid.request.Request.static_url`` API (and its brethren + ``pyramid.request.Request.static_path``, ``pyramid.url.static_url``, and + ``pyramid.url.static_path``) now accept an asbolute 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. + Internal -------- -- cgit v1.2.3