web/views/facets.py
changeset 5385 b6e250dd7a7d
parent 5377 84d14ddfae13
child 5389 809d3b5b3d31
equal deleted inserted replaced
5382:cb5dfea92285 5385:b6e250dd7a7d
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 
     9 
    10 from simplejson import dumps
    10 try:
       
    11     from json import dumps
       
    12 except ImportError:
       
    13     from simplejson import dumps
    11 
    14 
    12 from logilab.mtconverter import xml_escape
    15 from logilab.mtconverter import xml_escape
    13 
    16 
    14 from cubicweb.appobject import objectify_selector
    17 from cubicweb.appobject import objectify_selector
    15 from cubicweb.selectors import (non_final_entity, multi_lines_rset,
    18 from cubicweb.selectors import (non_final_entity, multi_lines_rset,