2009/11/25 Alberto Valverde <albe...@toscat.net>:
> Everything works fine when I request the application/json and
> application/json+xconfig mimetypes with a xhr since I can control the
> "Accept" header, however, when a browser makes a "normal" request the result
> is unpredictable (in practice) since '*/* is sent in the accept header so
> all of the view predicates evaluate positively.

This is partly the reason why some of these predicates seem a bit like
"meta-programming". Perhaps the ability to pass in a predicate
function would have worked just as well.

But it's a kind of toolbox –– with the inherent limitations of when
the tools apply.

Repoze-dev mailing list

Reply via email to