equal
deleted
inserted
replaced
11 import sys |
11 import sys |
12 import re |
12 import re |
13 from urllib import unquote |
13 from urllib import unquote |
14 from math import log |
14 from math import log |
15 from contextlib import contextmanager |
15 from contextlib import contextmanager |
16 |
|
17 try: |
|
18 import json |
|
19 except ImportError: |
|
20 import simplejson as json |
|
21 |
16 |
22 import yams.schema |
17 import yams.schema |
23 |
18 |
24 from logilab.common.testlib import TestCase, InnerTest |
19 from logilab.common.testlib import TestCase, InnerTest |
25 from logilab.common.pytest import nocoverage, pause_tracing, resume_tracing |
20 from logilab.common.pytest import nocoverage, pause_tracing, resume_tracing |
33 from cubicweb.dbapi import repo_connect, ConnectionProperties, ProgrammingError |
28 from cubicweb.dbapi import repo_connect, ConnectionProperties, ProgrammingError |
34 from cubicweb.sobjects import notification |
29 from cubicweb.sobjects import notification |
35 from cubicweb.web import Redirect, application |
30 from cubicweb.web import Redirect, application |
36 from cubicweb.devtools import SYSTEM_ENTITIES, SYSTEM_RELATIONS, VIEW_VALIDATORS |
31 from cubicweb.devtools import SYSTEM_ENTITIES, SYSTEM_RELATIONS, VIEW_VALIDATORS |
37 from cubicweb.devtools import fake, htmlparser |
32 from cubicweb.devtools import fake, htmlparser |
38 |
33 from cubicweb.utils import json |
39 |
34 |
40 # low-level utilities ########################################################## |
35 # low-level utilities ########################################################## |
41 |
36 |
42 class CubicWebDebugger(Debugger): |
37 class CubicWebDebugger(Debugger): |
43 """special debugger class providing a 'view' function which saves some |
38 """special debugger class providing a 'view' function which saves some |