equal
deleted
inserted
replaced
8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
8 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
9 """ |
9 """ |
10 __docformat__ = "restructuredtext en" |
10 __docformat__ = "restructuredtext en" |
11 _ = unicode |
11 _ = unicode |
12 |
12 |
13 try: |
13 import sys |
14 from json import dumps |
14 if sys.version_info < (2,6): |
15 except ImportError: |
15 import simplejson as json |
16 from simplejson import dumps |
16 else: |
|
17 import json |
|
18 |
|
19 dumps = json.dumps |
|
20 |
17 from urllib import quote as urlquote |
21 from urllib import quote as urlquote |
18 |
22 |
19 from logilab.common.deprecation import deprecated |
23 from logilab.common.deprecation import deprecated |
20 |
24 |
21 from cubicweb.web._exceptions import * |
25 from cubicweb.web._exceptions import * |