equal
deleted
inserted
replaced
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, |