diff options
| author | Amos Latteier <amos@latteier.com> | 2013-01-10 15:19:08 -0500 |
|---|---|---|
| committer | Amos Latteier <amos@latteier.com> | 2013-01-10 15:19:08 -0500 |
| commit | 9e1e6d3f6d8e131afe102f60af3ca8f597b32745 (patch) | |
| tree | 0e6b9fd17525f296f83cb1440695c90a66dce605 | |
| parent | b3643d8e587b48711f3224673d6c864d8ce1f93f (diff) | |
| download | pyramid-9e1e6d3f6d8e131afe102f60af3ca8f597b32745.tar.gz pyramid-9e1e6d3f6d8e131afe102f60af3ca8f597b32745.tar.bz2 pyramid-9e1e6d3f6d8e131afe102f60af3ca8f597b32745.zip | |
Change log note.
| -rw-r--r-- | CHANGES.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index adf448945..54623ddd2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,40 @@ +Bug Fixes +--------- + +- Now predicate mismatches don't hide valid views. This is mostly an + issue with views that use request_method predicates. Here's an + example that now works:: + + class IResource(Interface): + ... + + @view_config(context=IResource) + def get(context, request): + ... + + @view_config(context=IResource, request_method='POST') + def post(context, request): + ... + + @view_config(context=IResource, request_method='DELETE') + def delete(context, request): + ... + + @implementor(IResource) + class MyResource: + ... + + @view_config(context=MyResource, request_method='POST') + def override_post(context, request): + ... + + Previously the override_post view registration would hide the get + and delete views in the context of MyResource -- leading to a + predicate mismatch error when trying to use GET or DELETE + methods. Now the views are found and no predicate mismatch is + raised. + + 1.4 (2012-12-18) ================ |
