Commit 221c0723 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Fix NoWildcardAcceptPredicate compat with pyramid 1.10

self.val has been renamed to self.values
parent 935f90e015be
......@@ -18,7 +18,7 @@ __depends__ = {
'cubicweb[pyramid]': '>= 3.24.1',
'six': '>= 1.4.0',
'iso8601': None,
'pyramid': '>= 1.8.0',
'pyramid': '>= 1.10.0',
}
__recommends__ = {}
......
......@@ -32,7 +32,7 @@ class NoWildcardAcceptPredicate(predicates.AcceptPredicate):
def __call__(self, context, request):
request_accepts = [h for h in request.accept if h != '*/*']
for accept_type in self.val:
for accept_type in self.values:
if accept_type in request_accepts:
return True
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment