Re: [pylons-discuss] Pyramid view_config's "accept" predicate and default (catch-all) view

2015-10-25 Thread Michael Merickel
Currently the accept= routing is scheduled for a redesign. It technically works but is nondeterministic when two content types of equal quality are defined. For example, your default view with no accept= will only occur on requests that do not accept */*, otherwise either text/plain or application/

[pylons-discuss] Pyramid view_config's "accept" predicate and default (catch-all) view

2015-10-25 Thread Jonathan Vanasco
The default needs to appear last in the routing configuration, that is what is followed in-order. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-disc

[pylons-discuss] Pyramid view_config's "accept" predicate and default (catch-all) view

2015-10-22 Thread Stefan Frühwirth
With the accept predicate keyword to view_config I can match views based on the Accept header. But if I have multiple views for the same route, I want to have a "default" view if none of other specified accept rules match. This doesn't seem to work when the Accept header is "*/*". For instance,