From 9e1e6d3f6d8e131afe102f60af3ca8f597b32745 Mon Sep 17 00:00:00 2001 From: Amos Latteier Date: Thu, 10 Jan 2013 15:19:08 -0500 Subject: Change log note. --- CHANGES.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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) ================ -- cgit v1.2.3