diff options
| author | Michael Merickel <michael@merickel.org> | 2014-11-16 23:31:11 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2014-11-16 23:31:39 -0600 |
| commit | 8d535290147bc943045e1feaee9326cf3b996bed (patch) | |
| tree | 107c6e844b18d457f8719f0b810bde4ad8f765bc | |
| parent | 9279468d0e4d411652a735e28839bd8a5504ced6 (diff) | |
| download | pyramid-8d535290147bc943045e1feaee9326cf3b996bed.tar.gz pyramid-8d535290147bc943045e1feaee9326cf3b996bed.tar.bz2 pyramid-8d535290147bc943045e1feaee9326cf3b996bed.zip | |
attempt to clarify the benefit of these changes
| -rw-r--r-- | CHANGES.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7d79ddd18..2e2707f3f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,7 +8,17 @@ Features argument to ``pyramid.config.Configurator.add_static_view``: ``cachebust``. - Assets can now be overidden by an absolute path on the filesystem when using - the ``config.override_asset`` API. + 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/1229 Bug Fixes |
