diff options
| author | Michael Merickel <michael@merickel.org> | 2014-11-17 20:10:36 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2014-11-17 20:10:36 -0600 |
| commit | 92d84360ca61c54008fe81f9943eddf72fd44caf (patch) | |
| tree | 9768a29c1d0daaa15d26eb18115c4c00cdb67cd0 /CHANGES.txt | |
| parent | 5de30256b0861f0f7c86922c789a5e7e47472e27 (diff) | |
| parent | 5d0b1beaf3b09045fd3dd71244938ee6e391ebf3 (diff) | |
| download | pyramid-92d84360ca61c54008fe81f9943eddf72fd44caf.tar.gz pyramid-92d84360ca61c54008fe81f9943eddf72fd44caf.tar.bz2 pyramid-92d84360ca61c54008fe81f9943eddf72fd44caf.zip | |
Merge branch 'feature.override-asset-with-absolute-path'
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index bbaa6739e..fc1431c94 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -38,6 +38,20 @@ Features ``hmac.compare_digest`` if it is available (such as Python 2.7.7+ and 3.3+). See https://github.com/Pylons/pyramid/pull/1457 +- Assets can now be overidden by an absolute path on the filesystem when using + the ``config.override_asset`` API. This makes it possible to fully support + serving up static content from a mutable directory while still being able + to use the ``request.static_url`` API and ``config.add_static_view``. + Previously it was not possible to use ``config.add_static_view`` with an + absolute path **and** generate urls to the content. This change replaces + the call, ``config.add_static_view('/abs/path', 'static')``, with + ``config.add_static_view('myapp:static', 'static')`` and + ``config.override_asset(to_override='myapp:static/', + override_with='/abs/path/')``. The ``myapp:static`` asset spec is completely + made up and does not need to exist - it is used for generating urls + via ``request.static_url('myapp:static/foo.png')``. + See https://github.com/Pylons/pyramid/issues/1252 + Bug Fixes --------- |
