Permalink
Browse files

Change log note.

  • Loading branch information...
latteier committed Jan 10, 2013
1 parent b3643d8 commit 9e1e6d3f6d8e131afe102f60af3ca8f597b32745
Showing with 37 additions and 0 deletions.
  1. +37 −0 CHANGES.txt
View
@@ -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)
================

0 comments on commit 9e1e6d3

Please sign in to comment.