1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
22 from warnings import warn |
22 from warnings import warn |
23 |
23 |
24 from logilab.common import interface |
24 from logilab.common import interface |
25 from logilab.common.decorators import cached |
25 from logilab.common.decorators import cached |
26 from logilab.common.deprecation import deprecated |
26 from logilab.common.deprecation import deprecated |
|
27 from logilab.common.registry import yes |
27 from logilab.mtconverter import TransformData, TransformError, xml_escape |
28 from logilab.mtconverter import TransformData, TransformError, xml_escape |
28 |
29 |
29 from rql.utils import rqlvar_maker |
30 from rql.utils import rqlvar_maker |
30 from rql.stmts import Select |
31 from rql.stmts import Select |
31 from rql.nodes import (Not, VariableRef, Constant, make_relation, |
32 from rql.nodes import (Not, VariableRef, Constant, make_relation, |
32 Relation as RqlRelation) |
33 Relation as RqlRelation) |
33 |
34 |
34 from cubicweb import Unauthorized, typed_eid, neg_role |
35 from cubicweb import Unauthorized, typed_eid, neg_role |
35 from cubicweb.utils import support_args |
36 from cubicweb.utils import support_args |
36 from cubicweb.rset import ResultSet |
37 from cubicweb.rset import ResultSet |
37 from cubicweb.selectors import yes |
|
38 from cubicweb.appobject import AppObject |
38 from cubicweb.appobject import AppObject |
39 from cubicweb.req import _check_cw_unsafe |
39 from cubicweb.req import _check_cw_unsafe |
40 from cubicweb.schema import (RQLVocabularyConstraint, RQLConstraint, |
40 from cubicweb.schema import (RQLVocabularyConstraint, RQLConstraint, |
41 GeneratedConstraint) |
41 GeneratedConstraint) |
42 from cubicweb.rqlrewrite import RQLRewriter |
42 from cubicweb.rqlrewrite import RQLRewriter |