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 /.gitignore | |
| 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 '.gitignore')
0 files changed, 0 insertions, 0 deletions
