# HG changeset patch # User Aurelien Campeas # Date 1233154365 -3600 # Node ID ad3de58a8e308d501797e5e66caf866e5888195b # Parent fc7ce5f95dd9140435dba50416aa5257b172c5c2# Parent e25a3c2f5393c063a3d21b70bf7c8da97fc18b3b merge diff -r fc7ce5f95dd9 -r ad3de58a8e30 web/facet.py --- a/web/facet.py Wed Jan 28 15:50:14 2009 +0100 +++ b/web/facet.py Wed Jan 28 15:52:45 2009 +0100 @@ -243,7 +243,7 @@ help=_('display the box or not')), _('order'): dict(type='Int', default=99, help=_('display order of the box')), - _('context'): dict(type='String', default=None, + _('context'): dict(type='String', default='', # None <-> both vocabulary=(_('tablefilter'), _('facetbox'), ''), help=_('context where this box should be displayed')), diff -r fc7ce5f95dd9 -r ad3de58a8e30 web/request.py --- a/web/request.py Wed Jan 28 15:50:14 2009 +0100 +++ b/web/request.py Wed Jan 28 15:52:45 2009 +0100 @@ -640,7 +640,11 @@ def xhtml_browser(self): useragent = self.useragent() - if useragent and ('MSIE' in useragent or 'KHTML' in useragent): + # MSIE does not support xml content-type + # quick fix: Opera supports xhtml and handles namespaces + # properly but it breaks jQuery.attr() + if useragent and ('MSIE' in useragent or 'KHTML' in useragent + or 'Opera' in useragent): return False return True