summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-08-20 13:05:13 -0400
committerChris McDonough <chrism@plope.com>2011-08-20 13:05:13 -0400
commitb8c79771a186f1032635fc640b3cecc2c9e281ad (patch)
treec329dfaf72b40ae2358423a78d48fefd0f5752b4 /CHANGES.txt
parent5c6963152fcc756a06d2aea80a4e85f1c9bef7ee (diff)
downloadpyramid-b8c79771a186f1032635fc640b3cecc2c9e281ad.tar.gz
pyramid-b8c79771a186f1032635fc640b3cecc2c9e281ad.tar.bz2
pyramid-b8c79771a186f1032635fc640b3cecc2c9e281ad.zip
- 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.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt8
1 files changed, 8 insertions, 0 deletions
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
--------