diff options
| author | Chris McDonough <chrism@plope.com> | 2011-04-01 02:12:04 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-04-01 02:12:04 -0400 |
| commit | 0b262906f14975a6e6158635ff7568e49c5258bb (patch) | |
| tree | 8561d00730211db297ba7d0afa9b966220504d77 /CHANGES.txt | |
| parent | d0c2f35597d03aebf7226aaa5bd1efc92df199f4 (diff) | |
| download | pyramid-0b262906f14975a6e6158635ff7568e49c5258bb.tar.gz pyramid-0b262906f14975a6e6158635ff7568e49c5258bb.tar.bz2 pyramid-0b262906f14975a6e6158635ff7568e49c5258bb.zip | |
- Static views registered with ``config.add_static_view`` which also included
a ``permission`` keyword argument would not work as expected, because
``add_static_view`` also registered a route factory internally. Because a
route factory was registered internally, the context checked by the Pyramid
permission machinery never had an ACL. ``add_static_view`` no longer
registers a route with a factory, so the default root factory will be used.
- ``config.add_static_view`` now passes extra keyword arguments it receives
to ``config.add_route`` (calling add_static_view is mostly logically
equivalent to adding a view of the type ``pyramid.static.static_view``
hooked up to a route with a subpath). This makes it possible to pass e.g.,
``factory=`` to ``add_static_view`` to protect a particular static view
with a custom ACL.
Closes #161.
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 c731306e2..4fc218c0c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -48,6 +48,20 @@ Bug Fixes ``pyramid.view.append_slash_notfound_view`` (see https://github.com/Pylons/pyramid/issues#issue/149). +- Static views registered with ``config.add_static_view`` which also included + a ``permission`` keyword argument would not work as expected, because + ``add_static_view`` also registered a route factory internally. Because a + route factory was registered internally, the context checked by the Pyramid + permission machinery never had an ACL. ``add_static_view`` no longer + registers a route with a factory, so the default root factory will be used. + +- ``config.add_static_view`` now passes extra keyword arguments it receives + to ``config.add_route`` (calling add_static_view is mostly logically + equivalent to adding a view of the type ``pyramid.static.static_view`` + hooked up to a route with a subpath). This makes it possible to pass e.g., + ``factory=`` to ``add_static_view`` to protect a particular static view + with a custom ACL. + 1.0 (2011-01-30) ================ |
