equal
deleted
inserted
replaced
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """classes to define schemas for CubicWeb""" |
18 """classes to define schemas for CubicWeb""" |
19 from __future__ import print_function |
19 from __future__ import print_function |
20 |
20 |
21 __docformat__ = "restructuredtext en" |
21 __docformat__ = "restructuredtext en" |
22 _ = unicode |
|
23 |
22 |
24 import re |
23 import re |
25 from os.path import join, basename |
24 from os.path import join, basename |
26 from logging import getLogger |
25 from logging import getLogger |
27 from warnings import warn |
26 from warnings import warn |
47 |
46 |
48 from rql import parse, nodes, RQLSyntaxError, TypeResolverException |
47 from rql import parse, nodes, RQLSyntaxError, TypeResolverException |
49 from rql.analyze import ETypeResolver |
48 from rql.analyze import ETypeResolver |
50 |
49 |
51 import cubicweb |
50 import cubicweb |
52 from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized |
51 from cubicweb import ETYPE_NAME_MAP, ValidationError, Unauthorized, _ |
53 |
52 |
54 try: |
53 try: |
55 from cubicweb import server |
54 from cubicweb import server |
56 except ImportError: |
55 except ImportError: |
57 # We need to lookup DEBUG from there, |
56 # We need to lookup DEBUG from there, |