# HG changeset patch # User Adrien Di Mascio # Date 1246285003 -7200 # Node ID 667b6340bfd49c0b5e6de6e6e8343844c72d4d5e # Parent 529edb6a6c964934c84c6b1218c7a1cca6c722fc [views] comment the naive content-negotiation algorithm, it breaks FF2 navigation diff -r 529edb6a6c96 -r 667b6340bfd4 web/views/__init__.py --- a/web/views/__init__.py Mon Jun 29 16:09:49 2009 +0200 +++ b/web/views/__init__.py Mon Jun 29 16:16:43 2009 +0200 @@ -53,9 +53,15 @@ return True return False -VID_BY_MIMETYPE = {'text/xml': 'xml', - # XXX rss, owl... - } +# FIXME: VID_BY_MIMETYPE is unfortunately a bit too naive since +# some browsers (e.g. FF2) send a bunch of mimetypes in +# the Accept header, for instance: +# text/xml,application/xml,application/xhtml+xml,text/html;q=0.9, +# text/plain;q=0.8,image/png,*/*;q=0.5 +VID_BY_MIMETYPE = { + #'text/xml': 'xml', + # XXX rss, owl... +} def vid_from_rset(req, rset, schema): """given a result set, return a view id""" if rset is None: