Michael Merickel
2014-11-17 8d535290147bc943045e1feaee9326cf3b996bed
attempt to clarify the benefit of these changes
1 files modified
12 ■■■■■ changed files
CHANGES.txt 12 ●●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -8,7 +8,17 @@
  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