Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change log note.

  • Loading branch information...
commit 9e1e6d3f6d8e131afe102f60af3ca8f597b32745 1 parent b3643d8
@latteier latteier authored
Showing with 37 additions and 0 deletions.
  1. +37 −0 CHANGES.txt
View
37 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)
================
Please sign in to comment.
Something went wrong with that request. Please try again.